towns.cpp: In function 'int getSame(int, int)':
towns.cpp:10:24: warning: declaration of 'y' shadows a global declaration [-Wshadow]
10 | int getSame(int x, int y)
| ~~~~^
towns.cpp:8:46: note: shadowed declaration is here
8 | int dist[110], dist2[110], Hub[110], x[110], y[110];
| ^
towns.cpp:10:17: warning: declaration of 'x' shadows a global declaration [-Wshadow]
10 | int getSame(int x, int y)
| ~~~~^
towns.cpp:8:38: note: shadowed declaration is here
8 | int dist[110], dist2[110], Hub[110], x[110], y[110];
| ^
towns.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
13 | }
| ^
towns.cpp:10:17: warning: unused parameter 'x' [-Wunused-parameter]
10 | int getSame(int x, int y)
| ~~~~^
towns.cpp:10:24: warning: unused parameter 'y' [-Wunused-parameter]
10 | int getSame(int x, int y)
| ~~~~^
towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:15:28: warning: unused parameter 'sub' [-Wunused-parameter]
15 | int hubDistance(int N, int sub) {
| ~~~~^~~