#368
NrPal
Se dau două numere naturale a
și b
. Determinati numărul de palindromuri cuprinse în intervalul determinat de cele două numere.
Problema | NrPal | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #8114400 | Utilizator | |
Fișier | nrpal.cpp | Dimensiune | 644 B |
Data încărcării | 30 Ianuarie 2018, 09:34 | Scor / rezultat | Eroare de compilare |
nrpal.cpp: In function 'int main()': nrpal.cpp:7:5: error: 'inta' was not declared in this scope inta,b,uc,p=0,t; ^ nrpal.cpp:7:10: error: 'b' was not declared in this scope inta,b,uc,p=0,t; ^ nrpal.cpp:7:12: error: 'uc' was not declared in this scope inta,b,uc,p=0,t; ^ nrpal.cpp:7:15: error: 'p' was not declared in this scope inta,b,uc,p=0,t; ^ nrpal.cpp:7:19: error: 't' was not declared in this scope inta,b,uc,p=0,t; ^ nrpal.cpp:8:10: error: 'a' was not declared in this scope cin>>a>>b ^ nrpal.cpp:9:5: error: expected ';' before 'if' if(a>b) ^ nrpal.cpp:40:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrPal 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ă.