/in/foo.cc: In function 'int main()':
/in/foo.cc:24:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
24 | scanf("%d%d",&m,&n);
| ~^ ~~
| | |
| int* long int*
| %ld
/in/foo.cc:24:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
24 | scanf("%d%d",&m,&n);
| ~^ ~~
| | |
| int* long int*
| %ld
/in/foo.cc:28:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
28 | scanf("%d",&ch[i]);
| ~^ ~~~~~~
| | |
| | long int*
| int*
| %ld
/in/foo.cc:31:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
31 | printf("%d",tot);
| ~^ ~~~
| | |
| | long int
| int
| %ld