network.cpp: In function ‘void findRoute(int, int, int)’:
network.cpp:16:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=1;i<p[d].size();i++){
^
network.cpp:18:27: error: invalid conversion from ‘std::vector<int>*’ to ‘int’ [-fpermissive]
if (d + ping(p[d][i],p) == dist){
^
In file included from network.cpp:1:0:
network.h:2:5: note: initializing argument 2 of ‘int ping(int, int)’
int ping (int i, int j);
^
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]);
^