#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 | #8822836 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 641 B |
Data încărcării | 13 Martie 2018, 23:07 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp:2:1: error: 'ifstream' does not name a type ifstream fin ("statisticeordine.in"); ^ statisticiordine.cpp:3:1: error: 'ofstream' does not name a type ofstream fout ("statisticeordine.out"); ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:30:5: error: 'fin' was not declared in this scope fin>>n>>k; ^ statisticiordine.cpp:33:5: error: 'fout' was not declared in this scope fout<<a[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ă.