towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:40:13: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
40 | if(A.size()>N/2 || B.size()>N/2 || a>N/2 || b>N/2)return -R;
| ~~~~~~~~^~~~
towns.cpp:40:29: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
40 | if(A.size()>N/2 || B.size()>N/2 || a>N/2 || b>N/2)return -R;
| ~~~~~~~~^~~~
towns.cpp:44:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
44 | if(a+A.size()<=N/2 && B.size()<=N/2)return R;
| ~~~~~~~~~~^~~~~
towns.cpp:44:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
44 | if(a+A.size()<=N/2 && B.size()<=N/2)return R;
| ~~~~~~~~^~~~~
towns.cpp:45:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
45 | if(b+B.size()<=N/2 && A.size()<=N/2)return R;
| ~~~~~~~~~~^~~~~
towns.cpp:45:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
45 | 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) {
| ~~~~^~~