#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 | #54092446 | Utilizator | |
Fișier | statisticiordine.cpp | Dimensiune | 323 B |
Data încărcării | 19 Noiembrie 2024, 16:31 | Scor / rezultat | Eroare de compilare |
statisticiordine.cpp:5:15: warning: missing terminating " character [enabled by default] ofstream fout("statisticiordine.out\"); ^ statisticiordine.cpp:5:1: error: missing terminating " character ofstream fout("statisticiordine.out\"); ^ statisticiordine.cpp:6:13: error: 'i' has not been declared long long n,i,k,v[m1]; ^ statisticiordine.cpp:6:15: error: 'k' has not been declared long long n,i,k,v[m1]; ^ statisticiordine.cpp:6:17: error: 'v' has not been declared long long n,i,k,v[m1]; ^ statisticiordine.cpp:6:22: error: expected ')' before ';' token long long n,i,k,v[m1]; ^ statisticiordine.cpp: In function 'int main()': statisticiordine.cpp:8:7: error: 'n' was not declared in this scope fin>>n; ^ statisticiordine.cpp:9:7: error: 'i' was not declared in this scope for (i=1; i<=n; i++) ^ statisticiordine.cpp:10:14: error: 'v' was not declared in this scope fin>>v[i]; ^ statisticiordine.cpp:11:10: error: 'v' was not declared in this scope sort(v+1,v+n+1); ^ statisticiordine.cpp:12:13: error: 'k' was not declared in this scope fout<<v[k]; ^ statisticiordine.cpp:14:7: error: request for member 'close' in 'fout', which is of non-class type 'std::ofstream(long long int, int, int, int*) {aka std::basic_ofstream<char>(long long int, int, int, int*)}' fout.close(); ^
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ă.