#1264
StatisticiOrdine
Se dau n
numere naturale. Să se afișeze al k
-lea cel mai mic element din șir.
Problema | StatisticiOrdine | Operații I/O |
![]() statisticiordine.in /statisticiordine.out
|
---|---|---|---|
Limita timp | 1.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 1 MB
|
Id soluție | #57634072 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 522 B |
Data încărcării | 08 Aprilie 2025, 14:03 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp:7:23: error: expected ',' or '...' before 'arr' void quicksort(int[] arr, int low, int high) { ^ statisticiordine.cpp: In function 'void quicksort(int*)': statisticiordine.cpp:8:8: error: 'low' was not declared in this scope if(low >= high) return; ^ statisticiordine.cpp:8:15: error: 'high' was not declared in this scope if(low >= high) return; ^ statisticiordine.cpp:9:35: error: 'arr' was not declared in this scope int pivotPosition = partition(arr, low, high); ^ statisticiordine.cpp:9:40: error: 'low' was not declared in this scope int pivotPosition = partition(arr, low, high); ^ statisticiordine.cpp:9:45: error: 'high' was not declared in this scope int pivotPosition = partition(arr, low, high); ^ statisticiordine.cpp:9:49: error: 'partition' was not declared in this scope int pivotPosition = partition(arr, low, high); ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:19:20: error: too many arguments to function 'void quicksort(int*)' quicksort(a,1,n); ^ statisticiordine.cpp:7:7: note: declared here void quicksort(int[] arr, int low, int high) { ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema StatisticiOrdine face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.