#69
Să se scrie un program care să determine oglinditul unui număr natural citit de la tastatură.
| Problema | Oglindit | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62421578 | Utilizator | |
| Fișier | oglindit.cpp | Dimensiune | 227 B |
| Data încărcării | 21 Ianuarie 2026, 08:51 | Scor/rezultat | Eroare de compilare |
oglindit.cpp: In function 'int main()': oglindit.cpp:5:23: error: two or more data types in declaration of 'n' long long int int n,k,P,Uc,og; ^ oglindit.cpp:5:25: error: two or more data types in declaration of 'k' long long int int n,k,P,Uc,og; ^ oglindit.cpp:5:27: error: two or more data types in declaration of 'P' long long int int n,k,P,Uc,og; ^ oglindit.cpp:5:29: error: two or more data types in declaration of 'Uc' long long int int n,k,P,Uc,og; ^ oglindit.cpp:5:32: error: two or more data types in declaration of 'og' long long int int n,k,P,Uc,og; ^ oglindit.cpp:6:10: error: 'n' was not declared in this scope cin>>n>>k; ^ oglindit.cpp:6:13: error: 'k' was not declared in this scope cin>>n>>k; ^ oglindit.cpp:7:5: error: 'og' was not declared in this scope og=0; ^ oglindit.cpp:10:9: error: 'Uc' was not declared in this scope Uc=n%10; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Oglindit 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ă.