#1869
prosirz
Se citește un text format din cel mult 200
caractere (litere mici și/sau spații). a)
Să se determine numărul de vocale din text. b)
Să se înlocuiască ultima literă a fiecărui cuvânt cu litera Z (mare). c)
Să se rearanjeze în ordine invers lexicografică cuvintele din text și să se separe aceste cuvinte prin câte un singur spațiu.
Problema | prosirz | Operații I/O |
prosirz.in /prosirz.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 2 MB
/
Stivă 2 MB
|
Id soluție | #52007640 | Utilizator | |
Fișier | prosirz.cpp | Dimensiune | 1.24 KB |
Data încărcării | 16 Septembrie 2024, 00:04 | Scor / rezultat | Eroare de compilare |
prosirz.cpp: In function 'int main()': prosirz.cpp:14:5: error: reference to 'cin' is ambiguous cin.getline(s , 300); ^ prosirz.cpp:6:10: note: candidates are: std::ifstream cin ifstream cin("prosirz.in"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from prosirz.cpp:1: /usr/include/c++/4.8/iostream:60:18: note: std::istream std::cin extern istream cin; /// Linked to standard input ^ prosirz.cpp:25:5: error: reference to 'cout' is ambiguous cout << cnt << endl; ^ prosirz.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("prosirz.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from prosirz.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ prosirz.cpp:30:13: error: reference to 'cout' is ambiguous cout << 'Z'; ^ prosirz.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("prosirz.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from prosirz.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ prosirz.cpp:32:13: error: reference to 'cout' is ambiguous cout << s[i]; ^ prosirz.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("prosirz.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from prosirz.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ prosirz.cpp:53:5: error: reference to 'cout' is ambiguous cout << endl; ^ prosirz.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("prosirz.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from prosirz.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^ prosirz.cpp:60:13: error: reference to 'cout' is ambiguous cout << a[i] << ' '; ^ prosirz.cpp:7:10: note: candidates are: std::ofstream cout ofstream cout("prosirz.out"); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0, from prosirz.cpp:1: /usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema prosirz 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ă.