foo.cc: In function 'int main()':
foo.cc:30:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(int i=0;i<node[1].v.size();i++) {
| ~^~~~~~~~~~~~~~~~~
foo.cc:32:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for(int j=i+1;j<node[1].v.size();j++) {
| ~^~~~~~~~~~~~~~~~~
foo.cc:37:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
37 | if(i==node[1].h) break; flag=true;
| ^~
foo.cc:37:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
37 | if(i==node[1].h) break; flag=true;
| ^~~~
foo.cc:41:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int k=1;k<=node[j].v.size();k++) {
| ~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务