network.cpp: In function 'int findRoute(int, int, int)':
network.cpp:31:34: error: ambiguating new declaration of 'int findRoute(int, int, int)'
int findRoute(int N, int A, int B) {
^
In file included from network.cpp:2:0:
network.h:1:6: note: old declaration 'void findRoute(int, int, int)'
void findRoute(int N, int a, int b);
^
network.cpp:54:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
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]);
^