Problem | abbb |
---|---|
User | enzo123890 |
Submission Time | 2023-03-10 15:55:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
abbb.cpp: In function ‘int main()’:
abbb.cpp:19:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | if (x[j]+x[j+1] == "AB") {
| ^~~~
abbb.cpp:21:13: error: invalid conversion from ‘const char*’ to ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} [-fpermissive]
21 | x[j] = "";
| ^~
| |
| const char*
abbb.cpp:22:15: error: invalid conversion from ‘const char*’ to ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} [-fpermissive]
22 | x[j+1] = "";
| ^~
| |
| const char*
abbb.cpp:23:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
23 | } else if (x[j]+x[j+1] == "BB") {
| ^~~~
abbb.cpp: