startrek.cpp: In function 'void dfs1(int, int)':
startrek.cpp:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int j=0;j<v[i].size();j++)
| ~^~~~~~~~~~~~
startrek.cpp: In function 'void dfs2(int, int)':
startrek.cpp:38:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
38 | if(i!=1&&w[p]==0||w[p]==1&&l[p]==1&&!w[i])w[i]+=2;
| ~~~~^~~~~~~~~
startrek.cpp:42:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int j=0;j<v[i].size();j++)
| ~^~~~~~~~~~~~
startrek.cpp:47:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
47 | if(l[i]==1&&w[nb]!=1||l[i]==0)
| ~~~~~~~^~~~~~~~~~
startrek.cpp: In function 'void dfs3(int, int)':
startrek.cpp:57:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
57 | if(l[p]==1&&w[i]!=1||i!=1&&l[p]==0)
| ~~~~~~~^~~~~~~~~
startrek.cpp:62:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for(int j=0;j<v[i].size();j++)
| ~^~~~~~~~~~~~