crocodile.cpp: In function 'long long int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:78:8: error: redeclaration of 'std::vector<int> bahma'
78 | vi bahma(k);
| ^~~~~
crocodile.cpp:67:8: note: 'std::vector<int> bahma' previously declared here
67 | vi bahma(K);
| ^~~~~
crocodile.cpp:78:14: error: 'k' was not declared in this scope
78 | vi bahma(k);
| ^
crocodile.cpp:107:17: error: 'a' was not declared in this scope
107 | if (a[node]>d+x){
| ^
crocodile.cpp:108:17: error: 'b' was not declared in this scope
108 | b[node]=a[node];
| ^
crocodile.cpp:110:22: error: 'b' was not declared in this scope
110 | }else if(b[node]>d+x){
| ^
crocodile.cpp:113:22: error: 'b' was not declared in this scope
113 | pq.push({b[node],node});
| ^
crocodile.cpp:113:35: error: no matching function for call to 'std::priority_queue<std::pair<long long int, int>, std::vector<std::pair<long long int, int> >, std::greater<void> >::push(<brace-enclosed initializer list>)'
113 | pq.push({b[node],node});
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from crocodile.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:640:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long long int, int>; _Sequence = std::vector<std::pair<long long int, int> >; _Compare = std::greater<void>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, int>]'
640 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:640:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<long long int, int>&'}
640 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_queue.h:648:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<long long int, int>; _Sequence = std::vector<std::pair<long long int, int> >; _Compare = std::greater<void>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, int>]'
648 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:648:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<long long int, int>, std::vector<std::pair<long long int, int> >, std::greater<void> >::value_type&&' {aka 'std::pair<long long int, int>&&'}
648 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
crocodile.cpp:66:9: warning: unused variable 'n' [-Wunused-variable]
66 | int n = N;
| ^