Problem | card |
---|---|
User | dieunq1309 |
Submission Time | 2023-04-29 11:04:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:9:12: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘toupper’
9 | str = str.toupper();
| ^~~~~~~
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