crocodile.cpp: In function 'void dijkstra()':
crocodile.cpp:48:7: warning: unused variable 'parent' [-Wunused-variable]
48 | int parent = nodes.top()[2];
| ^~~~~~
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from crocodile.cpp:1:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Value = std::vector<long long int>; _Compare = cmp]':
/usr/include/c++/10/bits/stl_heap.h:139:48: required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Distance = long int; _Tp = std::vector<long long int>; _Compare = __gnu_cxx::__ops::_Iter_comp_val<cmp>]'
/usr/include/c++/10/bits/stl_heap.h:215:23: required from 'void std::push_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Compare = cmp]'
/usr/include/c++/10/bits/stl_queue.h:651:16: required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::vector<long long int>; _Sequence = std::vector<std::vector<long long int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::vector<long long int>]'
crocodile.cpp:42:27: required from here
/usr/include/c++/10/bits/predefined_ops.h:194:23: error: no match for call to '(cmp) (std::vector<long long int>&, std::vector<long long int>&)'
194 | { return bool(_M_comp(*__it, __val)); }
| ~~~~~~~^~~~~~~~~~~~~~
crocodile.cpp:27:7: note: candidate: 'bool cmp::operator()(std::vector<int>, std::vector<int>)'
27 | bool operator()(vector<int> a, vector<int> b) { return a[1] > b[1]; }
| ^~~~~~~~
crocodile.cpp:27:30: note: no known conversion for argument 1 from 'vector<long long int>' to 'vector<int>'
27 | bool operator()(vector<int> a, vector<int> b) { return a[1] > b[1]; }
| ~~~~~~~~~~~~^
In file included from /usr/include/c++/10/bits/stl_algobase.h:71,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from crocodile.cpp:1:
/usr/include/c++/10/bits/predefined_ops.h: In instantiation of 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Iterator2 = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Compare = cmp]':
/usr/include/c++/10/bits/stl_heap.h:231:14: required from 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Distance = long int; _Tp = std::vector<long long int>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<cmp>]'
/usr/include/c++/10/bits/stl_heap.h:263:25: required from 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<cmp>]'
/usr/include/c++/10/bits/stl_heap.h:332:19: required from 'void std::pop_heap(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<std::vector<long long int>*, std::vector<std::vector<long long int> > >; _Compare = cmp]'
/usr/include/c++/10/bits/stl_queue.h:678:15: required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::vector<long long int>; _Sequence = std::vector<std::vector<long long int> >; _Compare = cmp]'
crocodile.cpp:49:13: required from here
/usr/include/c++/10/bits/predefined_ops.h:156:30: error: no match for call to '(cmp) (std::vector<long long int>&, std::vector<long long int>&)'
156 | { return bool(_M_comp(*__it1, *__it2)); }
| ~~~~~~~^~~~~~~~~~~~~~~~
crocodile.cpp:27:7: note: candidate: 'bool cmp::operator()(std::vector<int>, std::vector<int>)'
27 | bool operator()(vector<int> a, vector<int> b) { return a[1] > b[1]; }
| ^~~~~~~~
crocodile.cpp:27:30: note: no known conversion for argument 1 from 'vector<long long int>' to 'vector<int>'
27 | bool operator()(vector<int> a, vector<int> b) { return a[1] > b[1]; }
| ~~~~~~~~~~~~^