Borderou de evaluare (job #2983940)

Utilizator florinilie324Ilie Florin Alexandru florinilie324 Data 23 februarie 2023 12:23:11
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:5: error: expected initializer before 'do' 10 | do{ | ^~ main.cpp:25:13: error: 'sorted' was not declared in this scope; did you mean 'strtod'? 25 | }while(!sorted); | ^~~~~~ | strtod main.cpp:25:6: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 25 | }while(!sorted); | ^~~~~ main.cpp:29:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 29 | return 0; | ^~~~~~ main.cpp:7:9: warning: unused variable 'v' [-Wunused-variable] 7 | int v[100001],i,j,n; | ^ main.cpp:7:19: warning: unused variable 'i' [-Wunused-variable] 7 | int v[100001],i,j,n; | ^ main.cpp:7:21: warning: unused variable 'j' [-Wunused-variable] 7 | int v[100001],i,j,n; | ^ Non zero exit status: 1

Ceva nu functioneaza?