towns.cpp: In function 'll get_Distance(ll, ll)':
towns.cpp:8:25: warning: declaration of 'y' shadows a global declaration [-Wshadow]
8 | ll get_Distance(ll x,ll y)
| ~~~^
towns.cpp:5:20: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:8:20: warning: declaration of 'x' shadows a global declaration [-Wshadow]
8 | ll get_Distance(ll x,ll y)
| ~~~^
towns.cpp:5:18: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp: In function 'void set_dist(ll, ll, ll)':
towns.cpp:14:28: warning: declaration of 'z' shadows a global declaration [-Wshadow]
14 | void set_dist(ll x,ll y,ll z)
| ~~~^
towns.cpp:5:22: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:14:23: warning: declaration of 'y' shadows a global declaration [-Wshadow]
14 | void set_dist(ll x,ll y,ll z)
| ~~~^
towns.cpp:5:20: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:14:18: warning: declaration of 'x' shadows a global declaration [-Wshadow]
14 | void set_dist(ll x,ll y,ll z)
| ~~~^
towns.cpp:5:18: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp: In function 'll get_dist(ll, ll)':
towns.cpp:19:21: warning: declaration of 'y' shadows a global declaration [-Wshadow]
19 | ll get_dist(ll x,ll y)
| ~~~^
towns.cpp:5:20: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:19:16: warning: declaration of 'x' shadows a global declaration [-Wshadow]
19 | ll get_dist(ll x,ll y)
| ~~~^
towns.cpp:5:18: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp: In function 'll check_balanced(std::vector<int>, bool)':
towns.cpp:23:30: warning: declaration of 'a' shadows a global declaration [-Wshadow]
23 | ll check_balanced(vector<ll> a,bool asd)
| ~~~~~~~~~~~^
towns.cpp:5:30: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:26:8: warning: declaration of 'i' shadows a global declaration [-Wshadow]
26 | ll i;
| ^
towns.cpp:5:8: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:36:14: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(i=0;i<a.size();i++)
| ~^~~~~~~~~
towns.cpp:43:18: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(i=0;i<a.size();i++)
| ~^~~~~~~~~
towns.cpp:48:8: warning: declaration of 's' shadows a global declaration [-Wshadow]
48 | ll s=0,t=0,gr=0;
| ^
towns.cpp:5:26: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:48:12: warning: declaration of 't' shadows a global declaration [-Wshadow]
48 | ll s=0,t=0,gr=0;
| ^
towns.cpp:5:28: note: shadowed declaration is here
5 | ll n,m,i,j,k,l,r,x,y,z,w,s,t,a[1100000],c[1100000],num[110000],up[110000],fir[110000],adj[1100][1100],mid,len,asdf,siz,ans;
| ^
towns.cpp:49:14: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(i=0;i<a.size();i++)
| ~^~~~~~~~~
towns.cpp:94:20: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | for(j=fir[gr];j<a.size();j++)
| ~^~~~~~~~~
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:171:14: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
171 | for(i=0;i<u.size();i++)
| ~^~~~~~~~~
towns.cpp:178:14: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
178 | for(i=0;i<u.size();i++)
| ~^~~~~~~~~
towns.cpp:184:43: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'll' {aka 'int'} may change value [-Wconversion]
184 | z=1+good.size()+another.size()+siz;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:185:18: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'll' {aka 'int'} may change value [-Wconversion]
185 | w=n-z-v[u[i]].size();
| ~~~^~~~~~~~~~~~~~~
towns.cpp:192:34: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'll' {aka 'int'} [-Wsign-compare]
192 | if(v[u[i]].size()<=mid)
| ~~~~~~~~~~~~~~^~~~~
towns.cpp:201:31: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'll' {aka 'int'} may change value [-Wconversion]
201 | siz+=v[u[i]].size();
| ^
towns.cpp:205:27: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'll' {aka 'int'} may change value [-Wconversion]
205 | z=n-another.size()-good.size();
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
towns.cpp:207:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'll' {aka 'int'} [-Wsign-compare]
207 | if(z<=mid&&good.size()<=mid)
| ~~~~~~~~~~~^~~~~
towns.cpp:209:30: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'll' {aka 'int'} [-Wsign-compare]
209 | if(another.size()<=mid)
| ~~~~~~~~~~~~~~^~~~~
towns.cpp:104:28: warning: unused parameter 'sub' [-Wunused-parameter]
104 | int hubDistance(int N, int sub) {
| ~~~~^~~