Problem card
User dieunq1309
Submission Time 2023-07-28 23:31:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:12:8: error: expected unqualified-id before ‘.’ token
12 | queue.push(i);
| ^
card.cpp:27:19: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘int’)
27 | deck.push(deck[0]);
| ^
card.cpp:35:19: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘int’)
35 | deck.push(deck[0]);
| ^
card.cpp:40:16: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘int’)
40 | temp = deck[0];
| ^
card.cpp:42:19: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘int’)
42 | deck.push(deck[0]);
| ^
card.cpp:46:14: error: no match for ‘operator[]’ (operand types are ‘std::queue<long long int>’ and ‘long long int’)