Problem card
User chiefoggy
Submission Time 2023-12-01 11:03:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:8:12: error: conflicting declaration ‘std::string temp’
8 | string temp;
| ^~~~
card.cpp:7:15: note: previous declaration as ‘int temp’
7 | int m, k, temp, store;
| ^~~~
card.cpp:12:31: error: ‘class std::deque<int>’ has no member named ‘length’
12 | for (int i = 0; i < cards.length(); ++i){
| ^~~~~~
card.cpp:13:19: error: invalid types ‘int[int]’ for array subscript
13 | if (temp[i] == '.') break;
| ^
card.cpp:14:24: error: invalid types ‘int[int]’ for array subscript
14 | else if (temp[i] == 'A'){
| ^
card.cpp:18:24: error: invalid types ‘int[int]’ for array subscript
18 | else if (temp[i] == 'B'){
| ^