stations.cpp: In function 'void DFS(std::vector<std::vector<int> >, int, int, int)':
stations.cpp:9:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
9 | if(d%2==0) ans[y]=t; t++;
| ^~
stations.cpp:9:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
9 | if(d%2==0) ans[y]=t; t++;
| ^
stations.cpp:10:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i=0; i<v[y].size(); i++){
| ~^~~~~~~~~~~~
stations.cpp:14:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
14 | if(d%2!=0) ans[y]=t; t++;
| ^~
stations.cpp:14:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
14 | if(d%2!=0) ans[y]=t; t++;
| ^
stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:40:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(i=1; i<c.size()-1; i++){
| ~^~~~~~~~~~~
stations.cpp:47:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for(i=1; i<c.size()-1; i++){
| ~^~~~~~~~~~~
stations.cpp:54:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | return ans;
| ^~~