crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:5:13: error: 'i' was not declared in this scope
5 | rep(i, 1, n, 1)
| ^
crocodile.cpp:5:9: error: 'rep' was not declared in this scope
5 | rep(i, 1, n, 1)
| ^~~
crocodile.cpp:15:24: error: 'pii' was not declared in this scope
15 | priority_queue<pii, V<pii>, greater<pii>> pq;
| ^~~
crocodile.cpp:15:29: error: 'V' was not declared in this scope
15 | priority_queue<pii, V<pii>, greater<pii>> pq;
| ^
crocodile.cpp:15:9: error: 'priority_queue' was not declared in this scope
15 | priority_queue<pii, V<pii>, greater<pii>> pq;
| ^~~~~~~~~~~~~~
crocodile.cpp:15:35: error: expected primary-expression before ',' token
15 | priority_queue<pii, V<pii>, greater<pii>> pq;
| ^
crocodile.cpp:15:37: error: 'greater' was not declared in this scope
15 | priority_queue<pii, V<pii>, greater<pii>> pq;
| ^~~~~~~
crocodile.cpp:15:51: error: 'pq' was not declared in this scope
15 | priority_queue<pii, V<pii>, greater<pii>> pq;
| ^~
crocodile.cpp:17:9: error: 'function' was not declared in this scope; did you mean 'union'?
17 | function<void(int)> update = [&](int node) -> void {
| ^~~~~~~~
| union
crocodile.cpp:17:18: error: expected primary-expression before 'void'
17 | function<void(int)> update = [&](int node) -> void {
| ^~~~
crocodile.cpp:42:40: error: expected primary-expression before ')' token
42 | pq.push({ 0, P[i] + 1 });
| ^
crocodile.cpp:50:26: error: 'dp' was not declared in this scope
50 | if (w != dp[node])
| ^~
crocodile.cpp:53:17: error: 'update' was not declared in this scope
53 | update(node);
| ^~~~~~
crocodile.cpp:56:16: error: 'dp' was not declared in this scope
56 | return dp[1];
| ^~