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