network.cpp: In function 'void findRoute(int, int, int)':
network.cpp:21:31: error: request for member 'cur' in 'v[dist].std::vector<int>::operator[](((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
while(ping(v[dist][i].cur)!=0)i++;
^~~
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]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~