Problem | card |
---|---|
User | dieunq1309 |
Submission Time | 2023-04-29 11:02:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:14:26: error: request for member ‘size’ in ‘str’, which is of non-class type ‘int’
14 | for (int i = 0; i < str.size(); i++)
| ^~~~
card.cpp:16:12: error: invalid types ‘int[int]’ for array subscript
16 | if (str[i] == "A")
| ^
card.cpp:18:8: error: request for member ‘push_back’ in ‘arr’, which is of non-class type ‘int [m]’
18 | arr.push_back(arr[0]);
| ^~~~~~~~~
card.cpp:19:8: error: request for member ‘remove’ in ‘arr’, which is of non-class type ‘int [m]’
19 | arr.remove(arr[0]);
| ^~~~~~
card.cpp:21:12: error: invalid types ‘int[int]’ for array subscript
21 | if (str[i] == "B")
| ^
card.cpp:23:8: error: request for member ‘push_back’ in ‘arr’, which is of non-class type ‘int [m]’
23 | arr.push_back(arr[1]);
| ^~~~~~~~~
card.cpp:24:8: error: re