crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:11:5: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
11 | vector<pair<long long long>> adj[MAXN];
| ^~~~~~
| std::vector
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from crocodile.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
crocodile.cpp:11:12: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
11 | vector<pair<long long long>> adj[MAXN];
| ^~~~
| std::pair
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from crocodile.cpp:2:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'std::pair' declared here
211 | struct pair
| ^~~~
crocodile.cpp:11:17: error: expected primary-expression before 'long'
11 | vector<pair<long long long>> adj[MAXN];
| ^~~~
crocodile.cpp:22:9: error: 'adj' was not declared in this scope
22 | adj[x].push_back({y,z});
| ^~~
crocodile.cpp:30:5: error: 'priority_queue' was not declared in this scope; did you mean 'std::priority_queue'?
30 | priority_queue<pair<long long,long long>,vector<pair<long long,long long>>,greater<pair<long long,long long>>> pq;
| ^~~~~~~~~~~~~~
| std::priority_queue
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from crocodile.cpp:2:
/usr/include/c++/10/bits/stl_queue.h:456:11: note: 'std::priority_queue' declared here
456 | class priority_queue
| ^~~~~~~~~~~~~~
crocodile.cpp:30:25: error: expected primary-expression before 'long'
30 | priority_queue<pair<long long,long long>,vector<pair<long long,long long>>,greater<pair<long long,long long>>> pq;
| ^~~~
crocodile.cpp:34:9: error: 'pq' was not declared in this scope
34 | pq.push({0,niz[i+1]});
| ^~
crocodile.cpp:39:12: error: 'pq' was not declared in this scope
39 | while (pq.empty()==false)
| ^~
crocodile.cpp:44:25: error: 'node0' was not declared in this scope; did you mean 'node'?
44 | if (dist0>dist2[node0]) continue;
| ^~~~~
| node
crocodile.cpp:46:21: error: 'adj' was not declared in this scope
46 | long long s=adj[node0].size();
| ^~~
crocodile.cpp:46:25: error: 'node0' was not declared in this scope; did you mean 'node'?
46 | long long s=adj[node0].size();
| ^~~~~
| node