Problem | skillmoves |
---|---|
User | justin271828 |
Submission Time | 2024-05-29 22:03:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
skillmoves.cpp: In function ‘int main()’:
skillmoves.cpp:18:14: error: no matching function for call to ‘std::priority_queue<int>::push(std::pair<const int, int>&)’
18 | pq.push(*it);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from skillmoves.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = int; _Sequence = std::vector<int>; _Compare = std::less<int>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = int]’
627 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:627:30: note: no known conversion for argument 1 from ‘std::pair<const int, int>’ to ‘const value_type&’ {aka ‘const int&’}
627 | push(const value_type& __x)