#1006
Să se afișeze pe ecran, în ordine crescătoare, toate palindromurile de tip munte cu exact 9 cifre. Un palindrom este de tip munte dacă cifrele sale sunt în ordine strict crescătoare până la jumătatea numărului.
| Problema | PalMunte | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64624208 | Utilizator | |
| Fișier | palmunte.cpp | Dimensiune | 240 B |
| Data încărcării | 19 Mai 2026, 10:06 | Scor/rezultat | Eroare de compilare |
palmunte.cpp:7:1: error: expected initializer before ‘int’ 7 | int a;b;c;d;e; | ^~~ palmunte.cpp:7:7: error: ‘b’ does not name a type 7 | int a;b;c;d;e; | ^ palmunte.cpp:7:9: error: ‘c’ does not name a type 7 | int a;b;c;d;e; | ^ palmunte.cpp:7:11: error: ‘d’ does not name a type 7 | int a;b;c;d;e; | ^ palmunte.cpp:7:13: error: ‘e’ does not name a type 7 | int a;b;c;d;e; | ^ palmunte.cpp:8:1: error: expected unqualified-id before ‘for’ 8 | for(a=1;a<=5;a++) | ^~~ palmunte.cpp:8:9: error: ‘a’ does not name a type 8 | for(a=1;a<=5;a++) | ^ palmunte.cpp:8:14: error: ‘a’ does not name a type 8 | for(a=1;a<=5;a++) | ^ palmunte.cpp:9:15: error: ‘b’ does not name a type 9 | for(b=a+1;b<=6;b++) | ^ palmunte.cpp:9:20: error: ‘b’ does not name a type 9 | for(b=a+1;b<=6;b++) | ^ palmunte.cpp:10:15: error: ‘c’ does not name a type 10 | for(c=b+1;c<=7;c++) | ^ palmunte.cpp:10:20: error: ‘c’ does not name a type 10 | for(c=b+1;c<=7;c++) | ^ palmunte.cpp:11:15: error: ‘e’ does not name a type 11 | for(d=c+1;e<=8;d++) | ^ palmunte.cpp:11:20: error: ‘d’ does not name a type 11 | for(d=c+1;e<=8;d++) | ^ palmunte.cpp:12:15: error: ‘e’ does not name a type 12 | for(e=d+1;e<=9;e++) | ^ palmunte.cpp:12:20: error: ‘e’ does not name a type 12 | for(e=d+1;e<=9;e++) | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PalMunte 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ă.