towns.cpp: In function 'int dis(int, int)':
towns.cpp:37:19: warning: declaration of 'v' shadows a global declaration [-Wshadow]
37 | int dis(int u,int v)
| ~~~~^
towns.cpp:35:21: note: shadowed declaration is here
35 | int n,d[202][202],u,v,to_x[202],to_y[202];
| ^
towns.cpp:37:13: warning: declaration of 'u' shadows a global declaration [-Wshadow]
37 | int dis(int u,int v)
| ~~~~^
towns.cpp:35:19: note: shadowed declaration is here
35 | int n,d[202][202],u,v,to_x[202],to_y[202];
| ^
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:44:21: warning: declaration of 'n' shadows a global declaration [-Wshadow]
44 | int hubDistance(int n,int sub)
| ~~~~^
towns.cpp:35:5: note: shadowed declaration is here
35 | int n,d[202][202],u,v,to_x[202],to_y[202];
| ^
towns.cpp:80:41: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
80 | if(okx==1 && (nearx-alive.size()>n/2 || neary>n/2)) return -res;
| ~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:81:41: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
81 | if(oky==1 && (neary-alive.size()>n/2 || nearx>n/2)) return -res;
| ~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:89:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
89 | if(nearx-alive.size()>n/2) return -res;
| ~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:96:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
96 | if(neary-alive.size()>n/2) return -res;
| ~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:105:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
105 | for(int i=0;i+1<alive.size();i+=2)
| ~~~^~~~~~~~~~~~~
towns.cpp:126:25: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
126 | int cnt=node[u].size();
| ~~~~~~~~~~~~^~
towns.cpp:127:13: warning: declaration of 'v' shadows a global declaration [-Wshadow]
127 | for(int v:dead)
| ^
towns.cpp:35:21: note: shadowed declaration is here
35 | int n,d[202][202],u,v,to_x[202],to_y[202];
| ^
towns.cpp:128:69: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
128 | if(dis(x,u)+dis(x,v)-2*to_x[u]!=dis(u,v)) cnt+=node[v].size();
| ^
towns.cpp:44:27: warning: unused parameter 'sub' [-Wunused-parameter]
44 | int hubDistance(int n,int sub)
| ~~~~^~~