crocodile.cpp: In function 'int dijkstra(int)':
crocodile.cpp:17:15: error: invalid types 'int[int]' for array subscript
17 | if (s[u]>=2)return cost+a[u][2];
| ^
crocodile.cpp:19:8: error: 'path' was not declared in this scope
19 | path=min(cost, path);
| ^~~~
crocodile.cpp:21:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < adj[u].size(); i++){
| ~~^~~~~~~~~~~~~~~
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:36:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int j=0;j<adj[P[i]].size();j++){
| ~^~~~~~~~~~~~~~~~~
crocodile.cpp: In function 'int dijkstra(int)':
crocodile.cpp:12:35: warning: control reaches end of non-void function [-Wreturn-type]
12 | priority_queue<pair<int, int> >pq;
| ^~