towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:40:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
40 | for (int i=0;i<2;i++)
| ^~~
towns.cpp:43:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
43 | if (a.size()>N/2||b.size()>N/2)
| ^~
towns.cpp:43:14: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if (a.size()>N/2||b.size()>N/2)
| ~~~~~~~~^~~~
towns.cpp:43:28: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if (a.size()>N/2||b.size()>N/2)
| ~~~~~~~~^~~~
towns.cpp:14:28: warning: unused parameter 'sub' [-Wunused-parameter]
14 | int hubDistance(int N, int sub){
| ~~~~^~~