towns.cpp: In function 'int d(int, int)':
towns.cpp:5:18: warning: declaration of 'v' shadows a global declaration [-Wshadow]
5 | 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];
| ^
towns.cpp:5:11: warning: declaration of 'u' shadows a global declaration [-Wshadow]
5 | 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];
| ^
towns.cpp: In function 'int calc(std::vector<int>)':
towns.cpp:24:51: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
24 | if (max(l.size(),r.size())+ve.size()-pos+1<=n/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
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:27:13: warning: unused variable 'c' [-Wunused-variable]
27 | int c=1;
| ^
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);
| ~~~~~~~~~~~~~~^~~~~