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:77:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
77 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~
Village.cpp:77:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
77 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~~
Village.cpp:78:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
78 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~
Village.cpp:78:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
78 | for(int i = 1;i<=N;i++)cout<<S1::mx[i]<<' ';cout<<'\n';
| ^~~~