bob.cpp: In function 'int main()':
bob.cpp:38:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
38 | scanf("%ld", &n);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
bob.cpp:39:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
39 | scanf("%ld", &m);
| ~~^ ~~
| | |
| | long long int*
| long int*
| %lld
bob.cpp:42:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
42 | scanf("%ld", &grid[i][j]);
| ~~^ ~~~~~~~~~~~
| | |
| | long long int*
| long int*
| %lld
bob.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%ld", &n);
| ~~~~~^~~~~~~~~~~
bob.cpp:39:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | scanf("%ld", &m);
| ~~~~~^~~~~~~~~~~
bob.cpp:42:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%ld", &grid[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~