Problem duckhunt13
User suzienguyen
Submission Time 2026-02-28 22:24:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:31:21: error: invalid use of member function ‘std::deque<_Tp, _Alloc>::const_reference std::deque<_Tp, _Alloc>::back() const [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::const_reference = const std::pair<int, int>&]’ (did you forget the ‘()’ ?)
31 | duckies.back = last;
| ~~~~~~~~^~~~
| ()