network.cpp: In function 'void findRoute(int, int, int)':
network.cpp:15:14: error: 'dist' was not declared in this scope
15 | int maxi = dist(a, b);
| ^~~~
network.cpp:20:17: warning: left operand of comma operator has no effect [-Wunused-value]
20 | int dist = (i, 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]
48 | 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]
51 | scanf("%d", &distance[u][v]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~