network.cpp: In function 'void findRoute(int, int, int)':
network.cpp:18:17: error: 'ping' was not declared in this scope
dist[i] = ping(i,b) + 1;
^~~~
network.cpp:18:17: note: suggested alternative: 'uint'
dist[i] = ping(i,b) + 1;
^~~~
uint
network.cpp:25:43: error: 'ping' was not declared in this scope
if((dist[i] == dist[node] - 1) and (ping(node,i) == 0)){
^~~~
network.cpp:25:43: note: suggested alternative: 'uint'
if((dist[i] == dist[node] - 1) and (ping(node,i) == 0)){
^~~~
uint
network.cpp:26:9: error: 'travelTo' was not declared in this scope
travelTo(node);
^~~~~~~~
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]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~