/in/foo.cc: In function 'int main()':
/in/foo.cc:11:31: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%ld%ld%ld", &m, &n, &k);
^
/in/foo.cc:11:31: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:11:31: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:16:21: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%ld", &val);
^