towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:43:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if(lSize > N / 2 || rSize > N / 2 || lMid.size() > N / 2 || rMid.size() > N / 2) return -ans;
| ~~~~~~~~~~~~^~~~~~~
towns.cpp:43:75: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if(lSize > N / 2 || rSize > N / 2 || lMid.size() > N / 2 || rMid.size() > N / 2) return -ans;
| ~~~~~~~~~~~~^~~~~~~
towns.cpp:49:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
49 | if(lMid.size() + lSize > N / 2){
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
towns.cpp:50:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | if(lMid.size() <= N / 2) return ans;
| ~~~~~~~~~~~~^~~~~~~~
towns.cpp:53:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
53 | else if(rMid.size() + rSize > N / 2){
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
towns.cpp:54:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
54 | if(rMid.size() <= N / 2) return ans;
| ~~~~~~~~~~~~^~~~~~~~
towns.cpp:33:13: warning: 'rSize' may be used uninitialized in this function [-Wmaybe-uninitialized]
33 | int lSize, rSize;
| ^~~~~
towns.cpp:33:6: warning: 'lSize' may be used uninitialized in this function [-Wmaybe-uninitialized]
33 | int lSize, rSize;
| ^~~~~