Problem card
User Kenniene
Submission Time 2024-03-30 17:21:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int32_t main()’:
card.cpp:17:42: error: no matching function for call to ‘std::deque<long long int>::pop_front(std::deque<long long int>::iterator)’
17 | cards.pop_front(cards.begin());
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from card.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate expects 0 arguments, 1 provided
card.cpp:21:46: error: no matching function for call to ‘std::deque<long long int>::pop_front(std::_Deque_iterator<long long int, long long int&, long long int*>