#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 | #22893629 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 736 B |
Data încărcării | 11 Mai 2020, 17:03 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp:6:1: error: expected ',' or ';' before 'int' int i,k1,n,v[4000001]; ^ statisticiordine.cpp: In function 'int poz(int, int)': statisticiordine.cpp:12:7: error: 'v' was not declared in this scope x=v[i]; ^ statisticiordine.cpp:20:17: error: expected ']' before ';' token v[j=v[i]; ^ statisticiordine.cpp: In function 'void quick(int, int)': statisticiordine.cpp:31:9: error: expected ';' before 'if' if(li<k-1) ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:39:8: error: 'n' was not declared in this scope f>>n>>k1; ^ statisticiordine.cpp:39:11: error: 'k1' was not declared in this scope f>>n>>k1; ^ statisticiordine.cpp:40:9: error: 'i' was not declared in this scope for(i=1;i<=n;++i) ^ statisticiordine.cpp:41:12: error: 'v' was not declared in this scope f>>v[i]; ^ statisticiordine.cpp:43:8: error: 'v' was not declared in this scope g<<v[k1]; ^
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ă.