Borderou de evaluare (job #790011)

Utilizator avatar andreietarerau Epure Andrei Christian andreietarerau IP ascuns
Problemă Comanda (clasa 5-6) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 oct. 2024 23:58:36 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:41:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 41 | if(nrant>=10 && nrant<=16) | ^~ main.cpp:43:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 43 | nrant=nr; | ^~~~~ main.cpp:44:14: error: expected '}' before 'else' 44 | else | ^~~~ main.cpp:40:10: note: to match this '{' 40 | { | ^ main.cpp:48:9: error: 'else' without a previous 'if' 48 | else if(nrant>=2 && nrant<=16) | ^~~~ main.cpp:50:31: error: 'i' was not declared in this scope 50 | nr=baza10(v,nrant,i-1); | ^ main.cpp: At global scope: main.cpp:57:5: error: expected unqualified-id before 'if' 57 | if(viable==false) | ^~ main.cpp:59:5: error: expected unqualified-id before 'else' 59 | else | ^~~~ main.cpp:62:5: error: expected unqualified-id before 'return' 62 | return 0; | ^~~~~~ main.cpp:63:1: error: expected declaration before '}' token 63 | } | ^