Problem firstabc
User Tez
Submission Time 2023-12-06 09:37:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firstabc.cpp: In function ‘int main()’:
firstabc.cpp:7:12: error: ‘s’ was not declared in this scope
7 | char arr[s];
| ^
firstabc.cpp:9:10: error: ‘A’ was not declared in this scope
9 | if(s = A){
| ^
firstabc.cpp:12:16: error: expected primary-expression before ‘char’
12 | else if (s = char B){
| ^~~~
firstabc.cpp:12:15: error: expected ‘)’ before ‘char’
12 | else if (s = char B){
| ~ ^~~~~
| )
firstabc.cpp:15:16: error: expected primary-expression before ‘char’
15 | else if (s = char C){
| ^~~~
firstabc.cpp:15:15: error: expected ‘)’ before ‘char’
15 | else if (s = char C){
| ~ ^~~~~
| )