crocodile.cpp: In function 'int trave_plan(int, int, std::vector<std::vector<int> >, std::vector<int>, int, std::vector<int>)':
crocodile.cpp:23:18: error: declaration of 'std::vector<Edge> edges' shadows a parameter
23 | vector<Edge> edges;
| ^~~~~
crocodile.cpp:20:50: note: 'std::vector<std::vector<int> > edges' previously declared here
20 | int trave_plan(int n, int m, vector<vector<int>> edges, vector<int> weights, int k, vector<int> exits) {
| ~~~~~~~~~~~~~~~~~~~~^~~~~
crocodile.cpp:29:21: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<Edge>, Edge>::value_type' {aka 'Edge'} and 'int')
29 | adj[edges[i][0]].push_back(mp(edges[i][1], weights[i]));
| ^
crocodile.cpp:29:47: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<Edge>, Edge>::value_type' {aka 'Edge'} and 'int')
29 | adj[edges[i][0]].push_back(mp(edges[i][1], weights[i]));
| ^
crocodile.cpp:30:21: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<Edge>, Edge>::value_type' {aka 'Edge'} and 'int')
30 | adj[edges[i][1]].push_back(mp(edges[i][0], weights[i]));
| ^
crocodile.cpp:30:47: error: no match for 'operator[]' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<Edge>, Edge>::value_type' {aka 'Edge'} and 'int')
30 | adj[edges[i][1]].push_back(mp(edges[i][0], weights[i]));
| ^