towns.cpp: In function 'int tav(int, int)':
towns.cpp:6:21: warning: declaration of 'b' shadows a global declaration [-Wshadow]
6 | int tav(int a, int b) {
| ^
towns.cpp:5:20: note: shadowed declaration is here
5 | int dist[c][c], a, b, h, n, mini;
| ^
towns.cpp:6:21: warning: declaration of 'a' shadows a global declaration [-Wshadow]
6 | int tav(int a, int b) {
| ^
towns.cpp:5:17: note: shadowed declaration is here
5 | int dist[c][c], a, b, h, n, mini;
| ^
towns.cpp: In function 'int tavol(int)':
towns.cpp:12:16: warning: variable 'd' set but not used [-Wunused-but-set-variable]
12 | int pos=0, d=0;
| ^
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:19:28: warning: unused parameter 'w' [-Wunused-parameter]
19 | int hubDistance(int q, int w) {
| ~~~~^