towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:39:14: warning: declaration of 'k' shadows a previous local [-Wshadow]
39 | for(auto k:tt)
| ^
towns.cpp:10:13: note: shadowed declaration is here
10 | int i,j,k,ans=2e9,a,b,c,x,y,z,now=0,aa,bb;
| ^
towns.cpp:8:28: warning: unused parameter 'sub' [-Wunused-parameter]
8 | int hubDistance(int N, int sub)
| ~~~~^~~
towns.cpp:42:22: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
42 | ans=min(ans,a-k.first);
| ~^~~~~~~~
towns.cpp:30:10: warning: 'bb' may be used uninitialized in this function [-Wmaybe-uninitialized]
30 | a=all[i][j];
| ~^~~~~~~~~~
towns.cpp:30:10: warning: 'aa' may be used uninitialized in this function [-Wmaybe-uninitialized]