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

Compile Error

party.cpp: In function ‘int main()’:
party.cpp:15:8: error: ‘a’ was not declared in this scope
15 | cin>>a>>b;
| ^
party.cpp:15:11: error: ‘b’ was not declared in this scope
15 | cin>>a>>b;
| ^
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 conv