Problem | party_noi |
---|---|
User | P0lterg3ist |
Submission Time | 2024-02-26 16:34:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party_noi.cpp: In function ‘int main()’:
party_noi.cpp:12:23: error: no matching function for call to ‘std::priority_queue<int>::push(std::istream&)’
12 | happy.push(cin);
| ^
In file included from /usr/include/c++/9/queue:64,
from party_noi.cpp:2:
/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, std::allocator<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::istream’ {aka ‘std::basic_istream<char>’} to ‘const value_type&’ {aka ‘const int&’}
627 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~