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