towns.cpp: In function 'int d(int, int)':
towns.cpp:6:18: warning: declaration of 'v' shadows a global declaration [-Wshadow]
6 | int d(int u, int v){
| ~~~~^
towns.cpp:4:28: note: shadowed declaration is here
4 | int n,dist[111][111],cnt,u,v,R,sz[2],lim;
| ^
towns.cpp:6:11: warning: declaration of 'u' shadows a global declaration [-Wshadow]
6 | int d(int u, int v){
| ~~~~^
towns.cpp:4:26: note: shadowed declaration is here
4 | int n,dist[111][111],cnt,u,v,R,sz[2],lim;
| ^
towns.cpp: In function 'int calc(std::vector<int>)':
towns.cpp:23:51: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
23 | if (max(l.size(),r.size())+ve.size()-pos+1<=n/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
towns.cpp:26:63: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
26 | return (max(l.size(),r.size())+(ve.size()-pos+2)/2>n/2?-R:R);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:31:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
31 | if (l.size()>n/2)
| ~~~~~~~~^~~~
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:71:43: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
71 | if (min(sz[1]+b.size(),sz[0]+a.size())>N/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:73:37: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
73 | if (max(a.size(),sz[1]+b.size())<=N/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
towns.cpp:75:37: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
75 | if (max(b.size(),sz[0]+a.size())<=N/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
towns.cpp:77:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
77 | return calc(b.size()+sz[1]<=N/2?a:b);
| ~~~~~~~~~~~~~~^~~~~