flood.cpp: In function 'int main()':
flood.cpp:14:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
14 | scanf("%d%d",&wallx[i],wally[i]);
| ~^ ~~~~~~~~
| | |
| int* int
flood.cpp:6:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
flood.cpp:9:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%d%d",&x[i],&y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
flood.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
flood.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d%d",&wallx[i],wally[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~