Borderou de evaluare (job #667005)

Utilizator avatar KaanUnal Kaan Unal KaanUnal IP ascuns
Problemă Cabina (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 oct. 2022 12:17:13 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 15 | if(i!=1) | ^~ main.cpp:20:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 20 | if((x2<x1 && x1>x) || (x2>x1 && x1<x)) | ^~ main.cpp:15:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 15 | if(i!=1) | ^ main.cpp:20:17: error: 'x2' was not declared in this scope; did you mean 'x'? 20 | if((x2<x1 && x1>x) || (x2>x1 && x1<x)) | ^~ | x main.cpp:22:9: error: 'x2' was not declared in this scope; did you mean 'x'? 22 | x2=x1; | ^~ | x