Compiler output
prog.cpp: In function 'int main()':
prog.cpp:9:39: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat]
prog.cpp:9:39: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat]
prog.cpp:9:39: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat]
prog.cpp:13:30: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat]
prog.cpp:30:29: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat]