#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 | #9197493 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 1002 B |
Data încărcării | 16 Aprilie 2018, 15:47 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp: In function 'unsigned int pozitie(unsigned int, unsigned int)': statisticiordine.cpp:24:19: error: 'd' was not declared in this scope x=v[rand() % (d - s + 1) + s]; ^ statisticiordine.cpp:24:23: error: 's' was not declared in this scope x=v[rand() % (d - s + 1) + s]; ^ statisticiordine.cpp: In function 'unsigned int rezolva(unsigned int, unsigned int)': statisticiordine.cpp:42:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(poz==k) ^ statisticiordine.cpp:45:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(k<poz) ^
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ă.