foo.cc: In function 'bool check(std::vector<int>)':
foo.cc:24:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(i=0;i<p.size()-1;++i)
| ~^~~~~~~~~~~
foo.cc: In function 'void dfs(int, int)':
foo.cc:35:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(i=0;i<v.size();++i)
| ~^~~~~~~~~
foo.cc:41:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(i=0;i<v.size();++i)
| ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:60:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(i=0;i<q.size();++i)
| ~^~~~~~~~~
foo.cc:56:9: warning: unused variable 'j' [-Wunused-variable]
56 | int n,i,j,t,s;
| ^
foo.cc:56:11: warning: unused variable 't' [-Wunused-variable]
56 | int n,i,j,t,s;
| ^
foo.cc:56:13: warning: unused variable 's' [-Wunused-variable]
56 | int n,i,j,t,s;
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务