#1256
Sa se verifice dacă o listă simplu înlănțuită formează un palindrom.
| Problema | FListaVerPalindrom | Operații I/O |
flistaverpalindrom.in/flistaverpalindrom.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 4 MB
/
Stivă 4 MB
|
| Id soluție | #64905094 | Utilizator | |
| Fișier | flistaverpalindrom.cpp | Dimensiune | 459 B |
| Data încărcării | 11 Iunie 2026, 10:32 | Scor/rezultat | 20 puncte |
flistaverpalindrom.cpp: In function ‘bool palindrom(node*)’: flistaverpalindrom.cpp:49:1: warning: control reaches end of non-void function [-Wreturn-type] 49 | } | ^ flistaverpalindrom.cpp:37:19: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized] 37 | {while(p->next!=u) | ~~~~~~~^~~ flistaverpalindrom.cpp:23:15: note: ‘u’ was declared here 23 | node *p, *u, *q; | ^ In function ‘bool palindrom(node*)’, inlined from ‘int main()’ at flistaverpalindrom.cpp:76:33: flistaverpalindrom.cpp:37:19: warning: ‘u’ may be used uninitialized [-Wmaybe-uninitialized] 37 | {while(p->next!=u) | ~~~~~~~^~~ flistaverpalindrom.cpp: In function ‘int main()’: flistaverpalindrom.cpp:23:15: note: ‘u’ was declared here 23 | node *p, *u, *q; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0 secunde | OK. | 20 | 20 | ||
| 3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.005 secunde | Raspuns gresit. | 30 | 0 | ||
| Punctaj total | 20 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FListaVerPalindrom face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.