Problem leave
User rk069
Submission Time 2024-03-08 13:50:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leave.cpp: In function ‘int main()’:
leave.cpp:19:23: error: no matching function for call to ‘std::deque<long long unsigned int>::erase(int&)’
19 | deque.erase(j);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from leave.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1807:7: note: candidate: ‘std::deque<_Tp, _Alloc>::iterator std::deque<_Tp, _Alloc>::erase(std::deque<_Tp, _Alloc>::const_iterator) [with _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<long long unsigned int, long long unsigned int&, long long unsigned int*>; std::deque<_Tp, _Alloc>::const_iterator = std::_Deque_iterator<long long unsigned int, const long long unsigned int&, const long long unsigned int*>]’
1807 | e