towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:43:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if(lMid.size() + lSize > N / 2){
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
towns.cpp:44:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
44 | if(lMid.size() <= N / 2) return ans;
| ~~~~~~~~~~~~^~~~~~~~
towns.cpp:47:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | else if(rMid.size() + rSize > N / 2){
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
towns.cpp:48:18: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
48 | if(rMid.size() <= N / 2) return ans;
| ~~~~~~~~~~~~^~~~~~~~
towns.cpp:9:28: warning: unused parameter 'sub' [-Wunused-parameter]
9 | int hubDistance(int N, int sub) {
| ~~~~^~~
towns.cpp:31:13: warning: 'rSize' may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | int lSize, rSize;
| ^~~~~
towns.cpp:31:6: warning: 'lSize' may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | int lSize, rSize;
| ^~~~~