network.cpp: In function 'void findRoute(long long int, long long int, long long int)':
network.cpp:27:12: error: 'ping' was not declared in this scope
dista[i]=ping(i, a) +1;
^~~~
network.cpp:27:12: note: suggested alternative: 'inf'
dista[i]=ping(i, a) +1;
^~~~
inf
network.cpp:32:12: error: 'ping' was not declared in this scope
distb[i]=ping(i, b) + 1;
^~~~
network.cpp:32:12: note: suggested alternative: 'inf'
distb[i]=ping(i, b) + 1;
^~~~
inf
network.cpp:45:3: error: 'travelTo' was not declared in this scope
travelTo(i);
^~~~~~~~
grader.c: In function 'int main()':
grader.c:48:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d%d%d", &N, &a, &b, &M);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
grader.c:51:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &distance[u][v]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~