towns.cpp: In function 'bool EQUAL(int, int)':
towns.cpp:12:23: warning: declaration of 'v' shadows a global declaration [-Wshadow]
12 | bool EQUAL(int u, int v) {
| ~~~~^
towns.cpp:10:8: note: shadowed declaration is here
10 | int u, v;
| ^
towns.cpp:12:16: warning: declaration of 'u' shadows a global declaration [-Wshadow]
12 | bool EQUAL(int u, int v) {
| ~~~~^
towns.cpp:10:5: note: shadowed declaration is here
10 | int u, v;
| ^
towns.cpp: In function 'int Do_The_Majority_Thing(std::vector<int>)':
towns.cpp:18:38: warning: declaration of 'v' shadows a global declaration [-Wshadow]
18 | int Do_The_Majority_Thing(vector<int>v) {
| ~~~~~~~~~~~^
towns.cpp:10:8: note: shadowed declaration is here
10 | int u, v;
| ^
towns.cpp:21:16: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
21 | int n = v.size();
| ~~~~~~^~
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:89:22: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
89 | if(it.second.size()>N/2) {
| ~~~~~~~~~~~~~~~~^~~~
towns.cpp:50:28: warning: unused parameter 'sub' [-Wunused-parameter]
50 | int hubDistance(int N, int sub) {
| ~~~~^~~