#77
UltimaCifraPara
Să se scrie un program care să determine ultima cifră pară a unui număr natural citit de la tastatură.
Problema | UltimaCifraPara | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #10136255 | Utilizator | |
Fișier | ultimacifrapara.cpp | Dimensiune | 277 B |
Data încărcării | 13 August 2018, 18:23 | Scor / rezultat | Eroare de compilare |
ultimacifrapara.cpp:5:1: error: stray '\302' in program int n, t=-1; ^ ultimacifrapara.cpp:5:1: error: stray '\240' in program ultimacifrapara.cpp:5:1: error: stray '\302' in program ultimacifrapara.cpp:5:1: error: stray '\240' in program ultimacifrapara.cpp:6:1: error: stray '\302' in program cin>>n; ^ ultimacifrapara.cpp:6:1: error: stray '\240' in program ultimacifrapara.cpp:6:1: error: stray '\302' in program ultimacifrapara.cpp:6:1: error: stray '\240' in program ultimacifrapara.cpp:7:1: error: stray '\302' in program while(n){ ^ ultimacifrapara.cpp:7:1: error: stray '\240' in program ultimacifrapara.cpp:7:1: error: stray '\302' in program ultimacifrapara.cpp:7:1: error: stray '\240' in program ultimacifrapara.cpp:8:1: error: stray '\302' in program if(n%10%2==0){ ^ ultimacifrapara.cpp:8:1: error: stray '\240' in program ultimacifrapara.cpp:8:1: error: stray '\302' in program ultimacifrapara.cpp:8:1: error: stray '\240' in program ultimacifrapara.cpp:8:1: error: stray '\302' in program ultimacifrapara.cpp:8:1: error: stray '\240' in program ultimacifrapara.cpp:8:1: error: stray '\302' in program ultimacifrapara.cpp:8:1: error: stray '\240' in program ultimacifrapara.cpp:9:1: error: stray '\302' in program t = n%10; ^ ultimacifrapara.cpp:9:1: error: stray '\240' in program ultimacifrapara.cpp:9:1: error: stray '\302' in program ultimacifrapara.cpp:9:1: error: stray '\240' in program ultimacifrapara.cpp:9:1: error: stray '\302' in program ultimacifrapara.cpp:9:1: error: stray '\240' in program ultimacifrapara.cpp:9:1: error: stray '\302' in program ultimacifrapara.cpp:9:1: error: stray '\240' in program ultimacifrapara.cpp:9:1: error: stray '\302' in program ultimacifrapara.cpp:9:1: error: stray '\240' in program ultimacifrapara.cpp:9:1: error: stray '\302' in program ultimacifrapara.cpp:9:1: error: stray '\240' in program ultimacifrapara.cpp:10:1: error: stray '\302' in program break; ^ ultimacifrapara.cpp:10:1: error: stray '\240' in program ultimacifrapara.cpp:10:1: error: stray '\302' in program ultimacifrapara.cpp:10:1: error: stray '\240' in program ultimacifrapara.cpp:10:1: error: stray '\302' in program ultimacifrapara.cpp:10:1: error: stray '\240' in program ultimacifrapara.cpp:10:1: error: stray '\302' in program ultimacifrapara.cpp:10:1: error: stray '\240' in program ultimacifrapara.cpp:10:1: error: stray '\302' in program ultimacifrapara.cpp:10:1: error: stray '\240' in program ultimacifrapara.cpp:10:1: error: stray '\302' in program ultimacifrapara.cpp:10:1: error: stray '\240' in program ultimacifrapara.cpp:11:1: error: stray '\302' in program } ^ ultimacifrapara.cpp:11:1: error: stray '\240' in program ultimacifrapara.cpp:11:1: error: stray '\302' in program ultimacifrapara.cpp:11:1: error: stray '\240' in program ultimacifrapara.cpp:11:1: error: stray '\302' in program ultimacifrapara.cpp:11:1: error: stray '\240' in program ultimacifrapara.cpp:11:1: error: stray '\302' in program ultimacifrapara.cpp:11:1: error: stray '\240' in program ultimacifrapara.cpp:12:1: error: stray '\302' in program n=n/10; ^ ultimacifrapara.cpp:12:1: error: stray '\240' in program ultimacifrapara.cpp:12:1: error: stray '\302' in program ultimacifrapara.cpp:12:1: error: stray '\240' in program ultimacifrapara.cpp:12:1: error: stray '\302' in program ultimacifrapara.cpp:12:1: error: stray '\240' in program ultimacifrapara.cpp:12:1: error: stray '\302' in program ultimacifrapara.cpp:12:1: error: stray '\240' in program ultimacifrapara.cpp:13:1: error: stray '\302' in program } ^ ultimacifrapara.cpp:13:1: error: stray '\240' in program ultimacifrapara.cpp:13:1: error: stray '\302' in program ultimacifrapara.cpp:13:1: error: stray '\240' in program ultimacifrapara.cpp:13:1: error: stray '\302' in program ultimacifrapara.cpp:13:1: error: stray '\240' in program ultimacifrapara.cpp:14:1: error: stray '\302' in program cout<<t; ^ ultimacifrapara.cpp:14:1: error: stray '\240' in program ultimacifrapara.cpp:14:1: error: stray '\302' in program ultimacifrapara.cpp:14:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema UltimaCifraPara 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ă.