towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:15:6: warning: declaration of 'n' shadows a global declaration [-Wshadow]
15 | int n=N; mult=-1;
| ^
towns.cpp:8:5: note: shadowed declaration is here
8 | int n,r,mult;
| ^
towns.cpp:58:12: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
58 | int c=n-a-v[sum-dist2[i]].size();
| ~~~^~~~~~~~~~~~~~~~~~~~~~~
towns.cpp:69:17: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
69 | if(v[b].size()<=n/2){
| ~~~~~~~~~~~^~~~~
towns.cpp:76:11: warning: declaration of 'i' shadows a previous local [-Wshadow]
76 | for(int i=0;i<min(int(v[b].size()),2);i++){
| ^
towns.cpp:51:10: note: shadowed declaration is here
51 | for(int i=0;i<n;i++){
| ^
towns.cpp:79:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
79 | for(int f=0;f<v[b].size();f++){
| ~^~~~~~~~~~~~
towns.cpp:14:28: warning: unused parameter 'sub' [-Wunused-parameter]
14 | int hubDistance(int N, int sub) {
| ~~~~^~~