Problem queuecutting
User Pandin
Submission Time 2024-06-21 15:48:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

queuecutting.cpp: In function ‘int main()’:
queuecutting.cpp:19:24: error: no matching function for call to ‘std::deque<int>::insert(int&)’
19 | dq.insert(z);
| ^
In file included from /usr/include/c++/9/deque:69,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from queuecutting.cpp:1:
/usr/include/c++/9/bits/deque.tcc:208:5: note: candidate: ‘std::deque<_Tp, _Alloc>::iterator std::deque<_Tp, _Alloc>::insert(std::deque<_Tp, _Alloc>::const_iterator, const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<int, int&, int*>; std::deque<_Tp, _Alloc>::const_iterator = std::_Deque_iterator<int, const int&, const int*>; std::deque<_Tp, _Alloc>::value_type = int]’
208 | deque<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~
/usr/include/c++/9/b