#13
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 | #65009164 | Utilizator | |
| Fișier | prefixe.cpp | Dimensiune | 492 B |
| Data încărcării | 13 Iulie 2026, 12:30 | Scor/rezultat | 0 puncte |
prefixe.cpp: In function ‘int main()’: prefixe.cpp:13:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for(int j=0;j<m;j++) | ^~~ prefixe.cpp:15:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | cout<<'\n'; | ^~~~ prefixe.cpp:22:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 22 | for(int j=0;j<m;j++) | ^~~ prefixe.cpp:24:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 24 | cout<<'\n'; | ^~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 30 | 0 | ||
| 4 | 0.002 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ă.