Borderou de evaluare (job #2987536)

Utilizator theo_scrie_codGhinea Theodor theo_scrie_cod Data 2 martie 2023 14:38:12
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:19:34: error: expected ';' before '}' token 19 | swap(v[j],v[j+1]) | ^ | ; 20 | 21 | } | ~ main.cpp:22:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 22 | for (i=1;i<=n;i++) | ^~~ main.cpp:24:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 24 | return 0; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?