Village.cpp: In function 'int32_t main()':
Village.cpp:55:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for (int i=0;i<v.size();i++) ok&=(v[i]!=i+1);
| ~^~~~~~~~~
Village.cpp:58:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for (int i=0;i<v.size();i++) c+=dis[i+1][v[i]];
| ~^~~~~~~~~
Village.cpp:69:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
69 | for (auto u:v1) cout<<u<<' ';cout<<endl;
| ^~~
Village.cpp:69:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
69 | for (auto u:v1) cout<<u<<' ';cout<<endl;
| ^~~~
Village.cpp:70:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
70 | for (auto u:v2) cout<<u<<' ';cout<<endl;
| ^~~
Village.cpp:70:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
70 | for (auto u:v2) cout<<u<<' ';cout<<endl;
| ^~~~