network.cpp:4:1: error: 'vector' does not name a type
vector<int>d[1005];
^~~~~~
network.cpp: In function 'void findRoute(int, int, int)':
network.cpp:9:24: error: 'n' was not declared in this scope
for (int i = 1; i <= n; ++i) {
^
network.cpp:15:5: error: 'd' was not declared in this scope
d[x].push_back(i);
^
network.cpp:20:18: error: 'd' was not declared in this scope
for (auto it:d[dist])
^
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]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~