#3625
Scrieți un program fabulos care citește un număr natural nenul n
și determină:
n
n
3
ale lui n
5
n
n
și cifra cea mai semnificativă a lui n
Problema | Prelucrari cifre | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58424275 | Utilizator | |
Fișier | prelucrari_cifre.cpp | Dimensiune | 311 B |
Data încărcării | 03 Iunie 2025, 14:40 | Scor / rezultat | Eroare de compilare |
prelucrari_cifre.cpp:2:1: error: stray '\346' in program int main() 日i ^ prelucrari_cifre.cpp:2:1: error: stray '\227' in program prelucrari_cifre.cpp:2:1: error: stray '\245' in program prelucrari_cifre.cpp:2:15: error: expected initializer before 'i' int main() 日i ^ prelucrari_cifre.cpp:3:32: error: 'SP' does not name a type int n,cn, SP,SI, SD3,S5,PO,NU; SP-0; ^ prelucrari_cifre.cpp:4:1: error: 'SI' does not name a type SI-0; SD3-0; s5-0; Po-1; cin>>n; NU-n: while (n!=0) t ^ prelucrari_cifre.cpp:4:7: error: 'SD3' does not name a type SI-0; SD3-0; s5-0; Po-1; cin>>n; NU-n: while (n!=0) t ^ prelucrari_cifre.cpp:4:14: error: 's5' does not name a type SI-0; SD3-0; s5-0; Po-1; cin>>n; NU-n: while (n!=0) t ^ prelucrari_cifre.cpp:4:20: error: 'Po' does not name a type SI-0; SD3-0; s5-0; Po-1; cin>>n; NU-n: while (n!=0) t ^ prelucrari_cifre.cpp:4:26: error: 'cin' does not name a type SI-0; SD3-0; s5-0; Po-1; cin>>n; NU-n: while (n!=0) t ^ prelucrari_cifre.cpp:4:34: error: 'NU' does not name a type SI-0; SD3-0; s5-0; Po-1; cin>>n; NU-n: while (n!=0) t ^ prelucrari_cifre.cpp:5:23: error: expected unqualified-id before numeric constant cn-n$l0. SP-SP+cn*cn; 1 (en32-1) SI-SI+en; if (cn$3--0) SD3-SD3+cn, if (cn>5) 85++; if (cn!=0) PO-PO*cn; n-n/10; ^ prelucrari_cifre.cpp:5:44: error: expected unqualified-id before 'if' cn-n$l0. SP-SP+cn*cn; 1 (en32-1) SI-SI+en; if (cn$3--0) SD3-SD3+cn, if (cn>5) 85++; if (cn!=0) PO-PO*cn; n-n/10; ^ prelucrari_cifre.cpp:5:85: error: expected unqualified-id before 'if' cn-n$l0. SP-SP+cn*cn; 1 (en32-1) SI-SI+en; if (cn$3--0) SD3-SD3+cn, if (cn>5) 85++; if (cn!=0) PO-PO*cn; n-n/10; ^ prelucrari_cifre.cpp:5:106: error: 'n' does not name a type cn-n$l0. SP-SP+cn*cn; 1 (en32-1) SI-SI+en; if (cn$3--0) SD3-SD3+cn, if (cn>5) 85++; if (cn!=0) PO-PO*cn; n-n/10; ^ prelucrari_cifre.cpp:6:1: error: expected unqualified-id before numeric constant 1 ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Prelucrari cifre 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ă.