#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 | #50613022 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 694 B |
Data încărcării | 17 Aprilie 2024, 10:27 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp: In function 'int pivot(int, int)': statisticiordine.cpp:10:5: error: 'i' was not declared in this scope i=ls; ^ statisticiordine.cpp:11:5: error: 'j' was not declared in this scope j=ld; ^ statisticiordine.cpp:12:5: error: 'ii' was not declared in this scope ii=0; ^ statisticiordine.cpp:13:5: error: 'jj' was not declared in this scope jj=1; ^ statisticiordine.cpp:16:12: error: 'v' was not declared in this scope if(v[i]>v[j]) ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:39:13: error: 'k' was not declared in this scope fin>>n>>k; ^ statisticiordine.cpp:40:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++) ^ statisticiordine.cpp:41:14: error: 'v' was not declared in this scope cin>>v[i]; ^ statisticiordine.cpp:43:11: error: 'v' was not declared in this scope fout<<v[k] ^ statisticiordine.cpp:45:5: error: expected ';' before 'return' return 0; ^ statisticiordine.cpp: In function 'int pivot(int, int)': statisticiordine.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
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ă.