foo.cc: In function 'int dfs(int)':
foo.cc:41:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i=0;i<v[u].size();i++)
| ~^~~~~~~~~~~~
foo.cc:49:1: warning: no return statement in function returning non-void [-Wreturn-type]
49 | }
| ^
foo.cc: In function 'int main()':
foo.cc:58:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
58 | scanf("%d%d%d",&u,&t,&w);
| ~~~~~^~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务