foo.cc: In function 'int main()':
foo.cc:29:4: error: 'cnt' was not declared in this scope; did you mean 'int'?
29 | cnt++
| ^~~
| int
foo.cc:32:14: error: 'cnt' was not declared in this scope; did you mean 'int'?
32 | printf("%d",cnt );
| ^~~
| int
foo.cc:16:6: warning: unused variable 'flog' [-Wunused-variable]
16 | int flog = 0;
| ^~~~
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d%d", &n,&m );
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:11:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d", &arr[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务