#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 | #50327761 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 660 B |
Data încărcării | 04 Aprilie 2024, 18:22 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp: In function 'int Repartitie(unsigned int*, int, int)': statisticiordine.cpp:7:28: error: 'swap' was not declared in this scope swap(v[i], v[j]); ^ statisticiordine.cpp:10:25: error: 'swap' was not declared in this scope swap(v[i + 1], v[dr]); ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:26:5: error: 'in' was not declared in this scope in >> n; ^ statisticiordine.cpp:30:5: error: 'out' was not declared in this scope out << v[k - 1] << " "; ^
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ă.