Problem card
User Johnnie
Submission Time 2023-06-18 09:26:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:14:23: error: request for member ‘begin’ in ‘cards’, which is of non-class type ‘std::deque<int> [m]’
14 | for (auto it = cards.begin(); it != cards.end(); ++it)
| ^~~~~
card.cpp:14:44: error: request for member ‘end’ in ‘cards’, which is of non-class type ‘std::deque<int> [m]’
14 | for (auto it = cards.begin(); it != cards.end(); ++it)
| ^~~
card.cpp:28:21: error: request for member ‘front’ in ‘cards’, which is of non-class type ‘std::deque<int> [m]’
28 | int temp = cards.front();
| ^~~~~
card.cpp:29:10: error: request for member ‘pop_front’ in ‘cards’, which is of non-class type ‘std::deque<int> [m]’
29 | cards.pop_front();
| ^~~~~~~~~
card.cpp:30:10: error: request for member ‘push_back’ in ‘cards’, which is of non-class type ‘std::deque<