Problem firstabc
User ilovepythonandhatecplusplus
Submission Time 2025-07-30 17:02:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firstabc.cpp: In function ‘int main()’:
firstabc.cpp:11:3: error: ‘total’ was not declared in this scope
11 | total=3;
| ^~~~~
firstabc.cpp:15:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | if (e=="A"){
| ^~~
firstabc.cpp:17:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | }else if (e=="B"){
| ^~~