#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 | #45617675 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 1.06 KB |
Data încărcării | 17 Octombrie 2023, 14:25 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp:7:25: error: size of array 'a' is too large int n, k,m, a[4000000000]; ^ statisticiordine.cpp: In function 'void citire(int)': statisticiordine.cpp:13:16: error: 'a' was not declared in this scope fin >> a[i]; ^ statisticiordine.cpp: In function 'void interclasare(int, int, int)': statisticiordine.cpp:24:14: error: 'a' was not declared in this scope if ( a[i]<a[j]) ^ statisticiordine.cpp:31:16: error: 'a' was not declared in this scope b[x++]=a[i++]; ^ statisticiordine.cpp:33:16: error: 'a' was not declared in this scope b[x++]=a[j++]; ^ statisticiordine.cpp:35:13: error: 'a' was not declared in this scope a[i]= b[j]; ^ statisticiordine.cpp: In function 'void afisare(int)': statisticiordine.cpp:57:18: error: 'a' was not declared in this scope else fout << a[i] << " "; ^
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ă.