foo.cc: In function 'void bfs()':
foo.cc:115:7: warning: unused variable 'j' [-Wunused-variable]
115 | int i,j;
| ^
foo.cc: In function 'int main()':
foo.cc:162:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
162 | freopen("river.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:163:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
163 | freopen("river.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:164:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
164 | scanf("%d%d%d",&m,&n,&k);
| ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:167:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
167 | scanf("%d%d",&fit[i].a,&fit[i].b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务