simurgh.cpp: In function 'void DFS(int)':
simurgh.cpp:14:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<g[node].size();i++){
^
simurgh.cpp: In function 'bool DFS2(int, int)':
simurgh.cpp:27:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<T[node].size();i++){
^
simurgh.cpp: In function 'std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)':
simurgh.cpp:35:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<u.size();i++){
^
simurgh.cpp:46:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<g[i].size();j++){
^
simurgh.cpp:51:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0;k<T[i].size();k++){
^
simurgh.cpp:59:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<tree.size();i++){
^
In file included from /usr/include/c++/5/cassert:43:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:33,
from simurgh.cpp:2:
simurgh.cpp:64:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(r.size() == n-1);
^
simurgh.cpp:70:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v.size();i++){
^
simurgh.cpp:77:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<u.size();i++) if(ok[i]) anss.push_back(i);
^