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:33: note: shadowed declaration is here
4 | int n,dist[111][111],cnt[111],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:31: note: shadowed declaration is here
4 | int n,dist[111][111],cnt[111],u,v,R,sz[2];
| ^
towns.cpp: In function 'int calc(std::vector<int>, int)':
towns.cpp:26:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | if (l.size()>n/2)
| ~~~~~~~~^~~~
towns.cpp:22:13: warning: unused variable 'c' [-Wunused-variable]
22 | int c=1;
| ^
towns.cpp:32:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
32 | if (r.size()<=n/2)
| ~~~~~~~~^~~~~
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:68:43: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
68 | if (min(sz[1]+b.size(),sz[0]+a.size())>N/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
towns.cpp:70:37: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
70 | if (max(a.size(),sz[1]+b.size())<=N/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
towns.cpp:72:37: warning: comparison of integer expressions of different signedness: 'const long unsigned int' and 'int' [-Wsign-compare]
72 | if (max(b.size(),sz[0]+a.size())<=N/2)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
towns.cpp:74:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
74 | return calc(b.size()+sz[1]<=N/2?a:b);
| ~~~~~~~~~~~~~~^~~~~