network.cpp: In function 'void findRoute(int, int, int)':
network.cpp:8:13: error: 'ping' was not declared in this scope
int D = ping(A, B)+1;
^~~~
network.cpp:8:13: note: suggested alternative: 'uint'
int D = ping(A, B)+1;
^~~~
uint
network.cpp:20:17: error: 'travelTo' was not declared in this scope
travelTo(n);
^~~~~~~~
network.cpp:25:5: error: 'travelTo' was not declared in this scope
travelTo(B);
^~~~~~~~
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]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~