towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:33:9: warning: declaration of 's' shadows a global declaration [-Wshadow]
33 | int s = ab - k;
| ^
towns.cpp:14:8: note: shadowed declaration is here
14 | int n, s;
| ^
towns.cpp:19:17: warning: control reaches end of non-void function [-Wreturn-type]
19 | vvi d(n, vi(n));
| ^
towns.cpp:35:23: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
35 | if (c == a || c == b) continue;
| ~~^~~~
towns.cpp:35:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
35 | if (c == a || c == b) continue;
| ~~^~~~