Problem card
User dieunq1309
Submission Time 2023-04-29 11:57:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:17:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | if (str[i] == "A")
| ^~~
card.cpp:19:8: error: request for member ‘push_back’ in ‘arr’, which is of non-class type ‘int [m]’
19 | arr.push_back(arr[0]);
| ^~~~~~~~~
card.cpp:20:8: error: request for member ‘remove’ in ‘arr’, which is of non-class type ‘int [m]’
20 | arr.remove(arr[0]);
| ^~~~~~
card.cpp:22:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (str[i] == "B")
| ^~~
card.cpp:24:8: error: request for member ‘push_back’ in ‘arr’, which is of non-class type ‘int [m]’
24 | arr.push_back(arr[1]);
| ^~~~~~~~~
card.cpp:25:8: error: request for member ‘remove’ in ‘arr’, which is of non-class type ‘int [m]’
25 | arr.remove(arr[1]);
|