towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:33:13: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
33 | if(A.size()>N/2 || B.size()>N/2 || a>N/2 || b>N/2)return -R;
| ~~~~~~~~^~~~
towns.cpp:33:29: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
33 | if(A.size()>N/2 || B.size()>N/2 || a>N/2 || b>N/2)return -R;
| ~~~~~~~~^~~~
towns.cpp:37:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if(a+A.size()<=N/2 && B.size()<=N/2)return R;
| ~~~~~~~~~~^~~~~
towns.cpp:37:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if(a+A.size()<=N/2 && B.size()<=N/2)return R;
| ~~~~~~~~^~~~~
towns.cpp:38:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
38 | if(b+B.size()<=N/2 && A.size()<=N/2)return R;
| ~~~~~~~~~~^~~~~
towns.cpp:38:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
38 | if(b+B.size()<=N/2 && A.size()<=N/2)return R;
| ~~~~~~~~^~~~~
towns.cpp:6:28: warning: unused parameter 'sub' [-Wunused-parameter]
6 | int hubDistance(int N, int sub) {
| ~~~~^~~