crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:3:5: error: 'll' was not declared in this scope; did you mean 'l'?
3 | ll f[n][2];
| ^~
| l
crocodile.cpp:5:5: error: 'priority_queue' was not declared in this scope
5 | priority_queue<pair<long long, int>, vector<pair<long long, int>>, greater<pair<long long, int>>> q;
| ^~~~~~~~~~~~~~
crocodile.cpp:5:20: error: 'pair' was not declared in this scope
5 | priority_queue<pair<long long, int>, vector<pair<long long, int>>, greater<pair<long long, int>>> q;
| ^~~~
crocodile.cpp:5:25: error: expected primary-expression before 'long'
5 | priority_queue<pair<long long, int>, vector<pair<long long, int>>, greater<pair<long long, int>>> q;
| ^~~~
crocodile.cpp:6:12: error: 'f' was not declared in this scope
6 | memset(f, 0x3f, sizeof f);
| ^
crocodile.cpp:6:5: error: 'memset' was not declared in this scope
6 | memset(f, 0x3f, sizeof f);
| ^~~~~~
crocodile.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | int travel_plan(int n, int m, int r[][2], int l[], int k, int p[])
crocodile.cpp:10:9: error: 'q' was not declared in this scope
10 | q.push({0, p[i]});
| ^
crocodile.cpp:12:5: error: 'vector' was not declared in this scope
12 | vector<pair<int, int>> g[n];
| ^~~~~~
crocodile.cpp:12:17: error: expected primary-expression before 'int'
12 | vector<pair<int, int>> g[n];
| ^~~
crocodile.cpp:16:9: error: 'g' was not declared in this scope
16 | g[u].push_back({v, l[i]});
| ^
crocodile.cpp:20:12: error: 'q' was not declared in this scope
20 | while(!q.empty()) {
| ^
crocodile.cpp:26:20: error: 'g' was not declared in this scope
26 | for(auto e:g[u]) {
| ^
crocodile.cpp:30:31: error: 'w' was not declared in this scope
30 | if(f[v][0] > fu + w) {
| ^
crocodile.cpp:45:12: error: expected primary-expression before 'int'
45 | vector<int> path;
| ^~~
crocodile.cpp:47:9: error: 'path' was not declared in this scope
47 | path.pb(u);
| ^~~~
crocodile.cpp:50:5: error: 'path' was not declared in this scope
50 | path.pb(u);
| ^~~~
crocodile.cpp:53:20: error: 'g' was not declared in this scope
53 | for(auto e:g[u]) {
| ^
crocodile.cpp:54:27: error: 'v' was not declared in this scope
54 | if(e.first == v) res += e.second;
| ^