Problem card
User Martin
Submission Time 2026-08-02 11:43:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:7:9: error: expected initializer before ‘<’ token
7 | deque d<int> cards;
| ^
card.cpp:16:3: error: ‘cards’ was not declared in this scope
16 | cards.push_back(i);
| ^~~~~
card.cpp:20:12: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
20 | if (move == 'A') {
| ~~~~~^~~~~~
card.cpp:21:14: error: ‘cards’ was not declared in this scope
21 | int top = cards.front();
| ^~~~~
card.cpp:26:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘char’ to binary ‘operator==’
26 | else if (move == 'B') {
| ~~~~~^~~~~~
card.cpp:27:21: error: ‘cards’ was not declared in this scope
27 | int first_card = cards.front();
| ^~~~~
card.cpp:36:10: error: ‘cards’ was not decl