#13
Prefixe
Să se scrie un program care să afişeze prefixele şi sufixele unui cuvânt citit.
Problema | Prefixe | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58346102 | Utilizator | |
Fișier | prefixe.cpp | Dimensiune | 855 B |
Data încărcării | 28 Mai 2025, 13:58 | Scor / rezultat | 0 puncte |
prefixe.cpp: In function 'int main()': prefixe.cpp:17:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j<=strlen(cp); j++) ^ prefixe.cpp:19:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<=strlen(cp)-j; i++) ^ prefixe.cpp:25:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<=strlen(cp);j++) ^ prefixe.cpp:27:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=j;i<=strlen(cp);i++) ^ prefixe.cpp:13:6: warning: unused variable 'i' [-Wunused-variable] int i,n,m=1,j; ^ prefixe.cpp:13:8: warning: unused variable 'n' [-Wunused-variable] int i,n,m=1,j; ^ prefixe.cpp:13:10: warning: unused variable 'm' [-Wunused-variable] int i,n,m=1,j; ^ prefixe.cpp:13:14: warning: unused variable 'j' [-Wunused-variable] int i,n,m=1,j; ^ prefixe.cpp:14:24: warning: unused variable 'p' [-Wunused-variable] char ch[256],cp[256],*p; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
Punctaj total | 0 |
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ă.