Problem party
User Daddy
Submission Time 2024-04-05 14:49:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party.cpp: In function ‘int main()’:
party.cpp:20:10: error: no matching function for call to ‘std::queue<int>::push(std::queue<int>&)’
20 | q.push(q);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from party.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from ‘std::queue<int>’ to ‘const value_type&’ {aka ‘const int&’}
259 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:264:7: note: cand