Borderou de evaluare (job #2890866)

Utilizator LIR16LazarIonutRadu LIR16 Data 16 aprilie 2022 20:41:02
Problema Orase2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:62:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 62 | for (int i = 0; i < 30; i++) | ^~~ main.cpp:64:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 64 | if (c(mid) < x) { | ^~ main.cpp: At global scope: main.cpp:73:23: error: 'mid' was not declared in this scope 73 | double ans = calc(mid); | ^~~ main.cpp:74:5: error: expected unqualified-id before 'if' 74 | if (c(mid) > x) | ^~ main.cpp:77:5: error: 'out' does not name a type 77 | out << (int)calc(mid); | ^~~ main.cpp:78:5: error: expected unqualified-id before 'return' 78 | return 0; | ^~~~~~ main.cpp:79:1: error: expected declaration before '}' token 79 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?