Problem | card |
---|---|
User | Ningja |
Submission Time | 2023-11-09 23:39:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:18:17: error: void value not ignored as it ought to be
18 | a=d.pop_front();
| ~~~~~~~~~~~^~
card.cpp:22:19: error: no matching function for call to ‘std::deque<int>::pop_front(int)’
22 | a=d.pop_front(2);
| ^
In file included from /usr/include/c++/9/deque:67,
from card.cpp:2:
/usr/include/c++/9/bits/stl_deque.h:1605:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = int; _Alloc = std::allocator<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:26:1: error: expected ‘}’ at end of input
26 | }
| ^
card.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^