In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from dreaming.cpp:1:
/usr/include/c++/10/bits/stl_queue.h: In instantiation of 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >':
dreaming.cpp:98:79: required from here
/usr/include/c++/10/bits/stl_queue.h:480:67: error: no type named 'value_type' in 'struct std::greater<std::pair<int, int> >'
480 | static_assert(is_same<_Tp, typename _Sequence::value_type>::value,
| ^~~~~
/usr/include/c++/10/bits/stl_queue.h:486:47: error: no type named 'value_type' in 'struct std::greater<std::pair<int, int> >'
486 | typedef typename _Sequence::value_type value_type;
| ^~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:487:46: error: no type named 'reference' in 'struct std::greater<std::pair<int, int> >'
487 | typedef typename _Sequence::reference reference;
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:488:51: error: no type named 'const_reference' in 'struct std::greater<std::pair<int, int> >'
488 | typedef typename _Sequence::const_reference const_reference;
| ^~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:489:46: error: no type named 'size_type' in 'struct std::greater<std::pair<int, int> >'
489 | typedef typename _Sequence::size_type size_type;
| ^~~~~~~~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:104:7: error: 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >' has no member named 'push'
104 | pq.push({nd, dia});
| ^~~~
dreaming.cpp:108:12: error: 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >' has no member named 'size'
108 | while (pq.size() >= 2) {
| ^~~~
dreaming.cpp:109:24: error: 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >' has no member named 'top'; did you mean 'pop'?
109 | pair<int,int> A = pq.top();
| ^~~
| pop
dreaming.cpp:111:24: error: 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >' has no member named 'top'; did you mean 'pop'?
111 | pair<int,int> B = pq.top();
| ^~~
| pop
dreaming.cpp:116:6: error: 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >' has no member named 'push'
116 | pq.push({new_mx, new_dia});
| ^~~~
dreaming.cpp:119:12: error: 'class std::priority_queue<std::pair<int, int>, std::greater<std::pair<int, int> >, std::vector<std::pair<int, int> > >' has no member named 'top'; did you mean 'pop'?
119 | return pq.top().s;
| ^~~
| pop
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from dreaming.cpp:1:
/usr/include/c++/10/bits/stl_queue.h: In instantiation of 'void std::priority_queue<_Tp, _Sequence, _Compare>::pop() [with _Tp = std::pair<int, int>; _Sequence = std::greater<std::pair<int, int> >; _Compare = std::vector<std::pair<int, int> >]':
dreaming.cpp:110:10: required from here
/usr/include/c++/10/bits/stl_queue.h:678:18: error: 'struct std::greater<std::pair<int, int> >' has no member named 'begin'
678 | std::pop_heap(c.begin(), c.end(), comp);
| ~~^~~~~
/usr/include/c++/10/bits/stl_queue.h:678:29: error: 'struct std::greater<std::pair<int, int> >' has no member named 'end'
678 | std::pop_heap(c.begin(), c.end(), comp);
| ~~^~~
/usr/include/c++/10/bits/stl_queue.h:679:4: error: 'struct std::greater<std::pair<int, int> >' has no member named 'pop_back'
679 | c.pop_back();
| ~~^~~~~~~~