crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:72:13: error: 'pq' was not declared in this scope; did you mean 'q'?
72 | while (!pq.empty())
| ^~
| q
crocodile.cpp:81:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
81 | for (int i = 0; i < adj[u].size(); i++)
| ~~^~~~~~~~~~~~~~~
crocodile.cpp:83:35: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'ff'
83 | int v = adj[u][i].ff;
| ^~
crocodile.cpp:84:37: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'ss'
84 | int cst = adj[u][i].ss;
| ^~
crocodile.cpp:89:9: error: 'viz' was not declared in this scope
89 | viz[u]++;
| ^~~