Să se verifice dacă o propoziție dată este palindromică.
| Problema | PalindromPropozitie | Operații I/O |
palindrom.in/palindrom.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64790441 | Utilizator | |
| Fișier | palindrompropozitie.cpp | Dimensiune | 787 B |
| Data încărcării | 01 Iunie 2026, 00:16 | Scor/rezultat | 0 puncte |
palindrompropozitie.cpp: In function ‘int main()’: palindrompropozitie.cpp:14:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for(int j=0;j<s;j++) | ^~~ palindrompropozitie.cpp:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | y[s] = '\0'; | ^ palindrompropozitie.cpp:25:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 25 | if(strcmp(a,b)!=0) | ^~ palindrompropozitie.cpp:27:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 27 | a=strtok(NULL," "); | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 70 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PalindromPropozitie 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ă.