Problem card
User chickengoat
Submission Time 2025-02-01 21:20:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if (c=="A") {
| ^~~
card.cpp:15:7: error: invalid use of non-static member function ‘void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
15 | dq.pop_front;
| ~~~^~~~~~~~~
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: declared here
1605 | pop_front() _GLIBCXX_NOEXCEPT
| ^~~~~~~~~
card.cpp:16:19: error: expected ‘;’ before ‘}’ token
16 | dq.push_back(x)
| ^
| ;
17 | }
| ~
card.cpp:18:10: error: ISO C++ forbids comparison between point