Problem abbb
User midtthew
Submission Time 2026-08-15 20:41:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

abbb.cpp: In function ‘int main()’:
abbb.cpp:15:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | bool is_AB = (result[leng - 2] == "A" && result[leng - 1] == "B");
| ^~~
abbb.cpp:15:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | bool is_AB = (result[leng - 2] == "A" && result[leng - 1] == "B");
| ^~~
abbb.cpp:16:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | bool is_BB = (result[leng - 2] == "B" && result [leng- 1] == "B");
| ^~~
abbb.cpp:16:66: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | bool is_BB = (result[leng - 2] == "B" && result [leng- 1] == "B");
|