#13
Prefixe
Să se scrie un program care să afişeze prefixele şi sufixele unui cuvânt citit.
Problema | Prefixe | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53679473 | Utilizator | |
Fișier | prefixe.cpp | Dimensiune | 414 B |
Data încărcării | 08 Noiembrie 2024, 09:48 | Scor / rezultat | Eroare de compilare |
prefixe.cpp:2:1: error: 'include' does not name a type include <cstring> ^ prefixe.cpp: In function 'int main()': prefixe.cpp:7:5: error: 'cin' was not declared in this scope cin.get(s,11); ^ prefixe.cpp:7:5: note: suggested alternative: In file included from prefixe.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ prefixe.cpp:8:15: error: 'strlen' was not declared in this scope n=strlen(s); ^ prefixe.cpp:13:9: error: 'cout' was not declared in this scope cout<<s[j]; ^ prefixe.cpp:13:9: note: suggested alternative: In file included from prefixe.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ prefixe.cpp:15:5: error: 'cout' was not declared in this scope cout<<endl; ^ prefixe.cpp:15:5: note: suggested alternative: In file included from prefixe.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ prefixe.cpp:15:11: error: 'endl' was not declared in this scope cout<<endl; ^ prefixe.cpp:15:11: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from prefixe.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^ prefixe.cpp:21:9: error: 'cout' was not declared in this scope cout<<s[j]; ^ prefixe.cpp:21:9: note: suggested alternative: In file included from prefixe.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ prefixe.cpp:23:5: error: 'cout' was not declared in this scope cout<<endl; ^ prefixe.cpp:23:5: note: suggested alternative: In file included from prefixe.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ prefixe.cpp:23:11: error: 'endl' was not declared in this scope cout<<endl; ^ prefixe.cpp:23:11: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from prefixe.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Prefixe 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ă.