#4861
Se citește de la tastatură un număr natural n de 3 cifre. Să se verifice dacă numărul citit este un palindrom.
| Problema | pal3 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #60212223 | Utilizator | |
| Fișier | pal3.cpp | Dimensiune | 157 B |
| Data încărcării | 21 Octombrie 2025, 17:23 | Scor/rezultat | Eroare de compilare |
pal3.cpp:2:7: error: expected nested-name-specifier before 'namescape' using namescape std; ^ pal3.cpp:2:7: error: 'namescape' has not been declared pal3.cpp:2:17: error: expected ';' before 'std' using namescape std; ^ pal3.cpp:2:17: error: 'std' does not name a type pal3.cpp: In function 'int main()': pal3.cpp:5:2: error: 'cin' was not declared in this scope cin>>n; ^ pal3.cpp:5:2: note: suggested alternative: In file included from pal3.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ pal3.cpp:7:6: error: 'cout' was not declared in this scope cout<<" DA "; ^ pal3.cpp:7:6: note: suggested alternative: In file included from pal3.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ pal3.cpp:9:6: error: 'cout' was not declared in this scope cout<<" NU "; ^ pal3.cpp:9:6: note: suggested alternative: In file included from pal3.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema pal3 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ă.