Problem knockingdominoes_ex
User ThinkingGeek257
Submission Time 2026-06-25 09:55:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

knockingdominoes_ex.cpp: In function ‘int main()’:
knockingdominoes_ex.cpp:17:13: error: no matching function for call to ‘std::priority_queue<int>::push(std::vector<int>&)’
17 | pq.push(v1);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from knockingdominoes_ex.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::vector<int>’ to ‘const value_type&’ {aka ‘const int&’}
627 | push(const value_type& __