foo.cc: In function 'void spfa(int)':
foo.cc:25:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i=0;i<a[x].to.size();i++){
| ~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:36:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | scanf("%d%d%d%d%d",&n,&k,&m,&s,&t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:37:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | For(i,1,n) scanf("%d",&c[i]);
| ~~~~~^~~~~~~~~~~~
foo.cc:38:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
38 | For(i,1,k) For(j,1,k) scanf("%d",&map[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:41:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
41 | scanf("%d%d%d",&x,&y,&z);
| ~~~~~^~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务