Borderou de evaluare (job #707320)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Kdiv (clasa a 5-a) | Compilator | cpp-32 |
Rundă | superoji3 | Status | evaluat |
Dată | 15 mar. 2023 11:37:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:17:13: error: expected '}' before 'else'
17 | else
| ^~~~
main.cpp:15:24: note: to match this '{'
15 | if(nr%2==0){
| ^
main.cpp:17:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
17 | else
| ^~~~
main.cpp:19:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
19 | while(nr%2==0)
| ^~~~~
main.cpp:21:13: error: 'else' without a previous 'if'
21 | else
| ^~~~
main.cpp: At global scope:
main.cpp:32:5: error: 'fout' does not name a type
32 | fout<<bn;
| ^~~~
main.cpp:34:5: error: expected unqualified-id before 'return'
34 | return 0;
| ^~~~~~
main.cpp:35:1: error: expected declaration before '}' token
35 | }
| ^