network.cpp: In function 'void findRoute(int, int, int)':
network.cpp:12:68: error: 'ping' was not declared in this scope
for(int i = 1; i <= N; ++i) if(i != S) path.push_back(ii(ping(S, i), i));
^
network.cpp:22:35: error: 'ping' was not declared in this scope
int val = ping(path[i].st, last);
^
network.cpp:27:58: error: 'travelTo' was not declared in this scope
for(int i = res.size() - 1; i >= 0; --i) travelTo(res[i]);
^
grader.c: In function 'int main()':
grader.c:48:39: 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:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &distance[u][v]);
^