Problem card
User Dam
Submission Time 2023-02-09 10:31:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:18:7: error: invalid type argument of unary ‘*’ (have ‘char’)
18 | if(*x == 'A'){
| ^
card.cpp:21:15: error: invalid type argument of unary ‘*’ (have ‘char’)
21 | } else if (*x == 'B'){
| ^