Village.cpp: In function 'void S1::dfs(int, int)':
Village.cpp:31:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i = 1;i<need.size();i++){
| ~^~~~~~~~~~~~
Village.cpp: In function 'int main()':
Village.cpp:79:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
79 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~
Village.cpp:79:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
79 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~~
Village.cpp:80:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
80 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~
Village.cpp:80:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
80 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~~