Problem abbb
User AaravRastogi
Submission Time 2026-10-30 11:13:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

abbb.cpp: In function ‘int main()’:
abbb.cpp:16:47: error: expected ‘)’ before ‘;’ token
16 | else if (A[j] == 'B' and A[j+1] == 'B')(++j; ans--; ans--;}
| ~ ^
| )
abbb.cpp:17:4: error: ‘else’ without a previous ‘if’
17 | else{lt = A[j];}
| ^~~~
abbb.cpp:17:16: error: ‘j’ was not declared in this scope
17 | else{lt = A[j];}
| ^
abbb.cpp:19:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | cout<<ans;
| ^~~
| abs
abbb.cpp: At global scope:
abbb.cpp:23:2: error: expected declaration before ‘}’ token
23 | }
| ^
abbb.cpp:24:1: error: expected declaration before ‘}’ token
24 | }
| ^