foo.cc: In function 'int main()':
foo.cc:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:18:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d",&f[i][j]);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:25:14: warning: 'next' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | while(now!=n){
| ~~~^~~
[Hydro](https://hydro.ac)提供评测服务