#1264
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 | #57356047 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 480 B |
Data încărcării | 27 Martie 2025, 11:25 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:6:5: error: 'uninsigned' was not declared in this scope uninsigned int aux, v[40000], n, k; ^ statisticiordine.cpp:6:16: error: expected ';' before 'int' uninsigned int aux, v[40000], n, k; ^ statisticiordine.cpp:9:12: error: 'n' was not declared in this scope fin >> n >> k; ^ statisticiordine.cpp:9:17: error: 'k' was not declared in this scope fin >> n >> k; ^ statisticiordine.cpp:11:16: error: 'v' was not declared in this scope fin >> v[i]; ^ statisticiordine.cpp:14:8: error: 'v' was not declared in this scope if(v[i] > v[j]) ^ statisticiordine.cpp:16:10: error: 'aux' was not declared in this scope aux = v[i]; ^ statisticiordine.cpp:20:13: error: 'v' was not declared in this scope fout << v[k]; ^
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ă.