Borderou de evaluare (job #3002741)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 15 martie 2023 07:34:00
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:9:9: error: 'sort' was not declared in this scope; did you mean 'qsort'? 9 | for(sort(a,a+n),i=0;i<n;G<<a[i++]<<' '); | ^~~~ | qsort main.cpp:9:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 9 | for(sort(a,a+n),i=0;i<n;G<<a[i++]<<' '); | ^~~ main.cpp:10:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 10 | return 0; | ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?