#1613
numere15
Se citește un număr natural nenul n
. Numărul n1
este format doar din cifrele pare ale lui n
. Numărul n2
este format doar din cifrele impare ale lui n
. Calculați valoarea absolută a diferenței lor.
Problema | numere15 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #18809821 | Utilizator | |
Fișier | numere15.cpp | Dimensiune | 331 B |
Data încărcării | 17 Noiembrie 2019, 20:42 | Scor / rezultat | Eroare de compilare |
numere15.cpp:6:5: error: stray '\302' in program int n,n1=0,n2=0; ^ numere15.cpp:6:5: error: stray '\240' in program numere15.cpp:6:5: error: stray '\302' in program numere15.cpp:6:5: error: stray '\240' in program numere15.cpp:7:5: error: stray '\302' in program cin>>n; ^ numere15.cpp:7:5: error: stray '\240' in program numere15.cpp:7:5: error: stray '\302' in program numere15.cpp:7:5: error: stray '\240' in program numere15.cpp:9:5: error: stray '\302' in program { ^ numere15.cpp:9:5: error: stray '\240' in program numere15.cpp:9:5: error: stray '\302' in program numere15.cpp:9:5: error: stray '\240' in program numere15.cpp:9:5: error: stray '\302' in program numere15.cpp:9:5: error: stray '\240' in program numere15.cpp:12:9: error: stray '\302' in program n1=n1*10+n%10; ^ numere15.cpp:12:9: error: stray '\240' in program numere15.cpp:12:9: error: stray '\302' in program numere15.cpp:12:9: error: stray '\240' in program numere15.cpp:12:9: error: stray '\302' in program numere15.cpp:12:9: error: stray '\240' in program numere15.cpp:12:9: error: stray '\302' in program numere15.cpp:12:9: error: stray '\240' in program numere15.cpp:14:9: error: stray '\302' in program n2=n2*10+n%10; ^ numere15.cpp:14:9: error: stray '\240' in program numere15.cpp:14:9: error: stray '\302' in program numere15.cpp:14:9: error: stray '\240' in program numere15.cpp:14:9: error: stray '\302' in program numere15.cpp:14:9: error: stray '\240' in program numere15.cpp:14:9: error: stray '\302' in program numere15.cpp:14:9: error: stray '\240' in program numere15.cpp:15:9: error: stray '\302' in program n=n/10; ^ numere15.cpp:15:9: error: stray '\240' in program numere15.cpp:15:9: error: stray '\302' in program numere15.cpp:15:9: error: stray '\240' in program numere15.cpp:16:5: error: stray '\302' in program } ^ numere15.cpp:16:5: error: stray '\240' in program numere15.cpp:16:5: error: stray '\302' in program numere15.cpp:16:5: error: stray '\240' in program numere15.cpp:17:5: error: stray '\302' in program cout<<n1<<" "<<n2; ^ numere15.cpp:17:5: error: stray '\240' in program numere15.cpp:17:5: error: stray '\302' in program numere15.cpp:17:5: error: stray '\240' in program numere15.cpp:17:5: error: stray '\302' in program numere15.cpp:17:5: error: stray '\240' in program numere15.cpp:17:5: error: stray '\302' in program numere15.cpp:17:5: error: stray '\240' in program numere15.cpp:17:5: error: stray '\302' in program numere15.cpp:17:5: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema numere15 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ă.