Problem pairofballs
User wongyikai
Submission Time 2023-12-13 11:59:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pairofballs.cpp: In function ‘int main()’:
pairofballs.cpp:31:24: error: expected ‘;’ before ‘:’ token
31 | a[top[temp][1]].pop():
| ^
| ;
pairofballs.cpp:35:69: error: no matching function for call to ‘std::queue<int>::push(std::queue<int>&)’
35 | if (top2[a[top[temp][0]].front()] == 2) pairs.push(a[top[temp][0]]);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from pairofballs.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)
| ^~~~