towns.cpp: In function 'int hubDistance(int, int)':
towns.cpp:13:22: error: 'getDistance' was not declared in this scope
dist[0][i] = getDistance(0, i);
^~~~~~~~~~~
towns.cpp:13:22: note: suggested alternative: 'hubDistance'
dist[0][i] = getDistance(0, i);
^~~~~~~~~~~
hubDistance
towns.cpp:19:22: error: 'getDistance' was not declared in this scope
dist[1][i] = getDistance(d1, i);
^~~~~~~~~~~
towns.cpp:19:22: note: suggested alternative: 'hubDistance'
dist[1][i] = getDistance(d1, i);
^~~~~~~~~~~
hubDistance
towns.cpp:66:42: error: 'getDistance' was not declared in this scope
if(dist[1][n] + dist[1][m] - getDistance(n, m) > dia){
^~~~~~~~~~~
towns.cpp:66:42: note: suggested alternative: 'hubDistance'
if(dist[1][n] + dist[1][m] - getDistance(n, m) > dia){
^~~~~~~~~~~
hubDistance
towns.cpp:86:46: error: 'getDistance' was not declared in this scope
if(dist[1][i] + dist[1][g] - getDistance(i, g) > dia){
^~~~~~~~~~~
towns.cpp:86:46: note: suggested alternative: 'hubDistance'
if(dist[1][i] + dist[1][g] - getDistance(i, g) > dia){
^~~~~~~~~~~
hubDistance
towns.cpp:10:28: warning: unused parameter 'sub' [-Wunused-parameter]
int hubDistance(int N, int sub){
^~~