Borderou de evaluare (job #670798)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tastatura1 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 oct. 2022 20:40:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:15: warning: multi-character character constant [-Wmultichar]
11 | while (c!='/n')
| ^~~~
main.cpp: In function 'int main()':
main.cpp:19:14: warning: statement has no effect [-Wunused-value]
19 | t==2;
| ~^~~
main.cpp:36:10: error: 'else' without a previous 'if'
36 | else if (c=='+')
| ^~~~
main.cpp:38:13: error: 'E' was not declared in this scope
38 | E=E+n/10;
| ^
main.cpp:46:11: error: 'E' was not declared in this scope
46 | fout<<E;
| ^
main.cpp:9:13: warning: unused variable 's' [-Wunused-variable]
9 | int n=0,s=0,i,t;
| ^
main.cpp:9:17: warning: unused variable 'i' [-Wunused-variable]
9 | int n=0,s=0,i,t;
| ^