foo.cc: In function 'int dfs(int)':
foo.cc:51: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]
51 | for(int i=0;i<v[u].size();i++)
| ~^~~~~~~~~~~~
foo.cc:59:1: warning: no return statement in function returning non-void [-Wreturn-type]
59 | }
| ^
foo.cc: In function 'int main()':
foo.cc:68:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
68 | scanf("%d%d%d",&u,&t,&w);
| ~~~~~^~~~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务