#131
SortCif2
Să se scrie un program care ordonează elementele unui vector crescător după prima cifră.
Problema | SortCif2 | Operații I/O |
sortcif2.in /sortcif2.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53785146 | Utilizator | |
Fișier | sortcif2.cpp | Dimensiune | 585 B |
Data încărcării | 11 Noiembrie 2024, 18:32 | Scor / rezultat | Eroare de compilare |
sortcif2.cpp:14:5: error: stray '\342' in program ifstream fin(“sortcif2.in”); ^ sortcif2.cpp:14:5: error: stray '\200' in program sortcif2.cpp:14:5: error: stray '\234' in program sortcif2.cpp:14:5: error: stray '\342' in program sortcif2.cpp:14:5: error: stray '\200' in program sortcif2.cpp:14:5: error: stray '\235' in program sortcif2.cpp:15:5: error: stray '\342' in program ofstream fout(“sortcif2.out”); ^ sortcif2.cpp:15:5: error: stray '\200' in program sortcif2.cpp:15:5: error: stray '\234' in program sortcif2.cpp:15:5: error: stray '\342' in program sortcif2.cpp:15:5: error: stray '\200' in program sortcif2.cpp:15:5: error: stray '\235' in program sortcif2.cpp:25:9: error: stray '\342' in program fout << v[i] << “ “; ^ sortcif2.cpp:25:9: error: stray '\200' in program sortcif2.cpp:25:9: error: stray '\234' in program sortcif2.cpp:25:9: error: stray '\342' in program sortcif2.cpp:25:9: error: stray '\200' in program sortcif2.cpp:25:9: error: stray '\234' in program sortcif2.cpp: In function 'int main()': sortcif2.cpp:6:17: error: a function-definition is not allowed here before '{' token int pcif(int n) { ^ sortcif2.cpp:12:12: error: a function-definition is not allowed here before '{' token int main() { ^ sortcif2.cpp:27:1: error: 'sortcif2' was not declared in this scope sortcif2.in ^ sortcif2.cpp:28:1: error: expected ';' before 'return' return 0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SortCif2 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ă.