foo.cc: In function 'int main()':
foo.cc:26:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i=0;i<g[f.x].size();i++){
| ~^~~~~~~~~~~~~~
foo.cc:11:11: warning: unused variable 'm' [-Wunused-variable]
11 | int n,m,a,b,c;
| ^
foo.cc:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:14:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d",&dis[i]);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务