Borderou de evaluare (job #588877)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | La școală (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 29 mar. 2021 16:53:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:5: error: expected initializer before 'cin'
9 | cin >> ch;
| ^~~
main.cpp:10:8: error: 'ch' was not declared in this scope
10 | if(ch == 'a'){
| ^~
main.cpp:13:8: error: 'ch' was not declared in this scope
13 | if(ch == 'b'){
| ^~
main.cpp:16:8: error: 'ch' was not declared in this scope
16 | if(ch == 'c'){
| ^~