Problem | pairofballs |
---|---|
User | wongyikai |
Submission Time | 2023-12-13 11:59:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pairofballs.cpp: In function ‘int main()’:
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)
| ^~~~
/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