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