crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:16:36: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Tp, class _Sequence, class _Compare> class std::priority_queue'
16 | priority_queue<pair<int, int>, com> q;
| ^
crocodile.cpp:16:36: note: expected a type, got 'com'
crocodile.cpp:16:36: error: template argument 3 is invalid
crocodile.cpp:21:5: error: request for member 'push' in 'q', which is of non-class type 'int'
21 | q.push({0, P[i]});
| ^~~~
crocodile.cpp:28:11: error: request for member 'empty' in 'q', which is of non-class type 'int'
28 | while(!q.empty()){
| ^~~~~
crocodile.cpp:29:15: error: request for member 'top' in 'q', which is of non-class type 'int'
29 | auto pp = q.top();q.pop();
| ^~~
crocodile.cpp:29:23: error: request for member 'pop' in 'q', which is of non-class type 'int'
29 | auto pp = q.top();q.pop();
| ^~~
crocodile.cpp:44:7: error: request for member 'push' in 'q', which is of non-class type 'int'
44 | q.push({*s1, v});
| ^~~~