Borderou de evaluare (job #776062)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cezark (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 apr. 2024 10:09:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:19: warning: multi-character character constant [-Wmultichar]
18 | x=(x+k'-z')+'a'-1;
| ^~~~
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream in ("cezark.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream out (" cezark.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:10:5: error: 'in' was not declared in this scope; did you mean 'int'?
10 | in>>k;
| ^~
| int
main.cpp:18:19: error: expected ')' before '\x2d7a'
18 | x=(x+k'-z')+'a'-1;
| ~ ^~~~
| )
main.cpp:17:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
17 | else
| ^~~~
main.cpp:19:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
19 | s=x;
| ^
main.cpp:20:13: error: 'out' was not declared in this scope
20 | out<<s;
| ^~~