Problem duckhunt13
User Secre
Submission Time 2025-06-18 11:06:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:17:27: error: no matching function for call to ‘std::deque<int>::pop_back(int&)’
17 | ducks.pop_back(BulletType);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from duckhunt13.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
1628 | pop_back() _GLIBCXX_NOEXCEPT
| ^~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1628:7: note: candidate expects 0 arguments, 1 provided