#665
DivCif
Se dau două numere naturale a b
. Determinați câte numere naturale din intervalul [a,b]
se divid cu toate cifrele lor nenule.
Problema | DivCif | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9950193 | Utilizator | |
Fișier | divcif.cpp | Dimensiune | 411 B |
Data încărcării | 27 Iunie 2018, 21:41 | Scor / rezultat | Eroare de compilare |
divcif.cpp:5:1: error: stray '\302' in program { cin>>a>>b; ^ divcif.cpp:5:1: error: stray '\240' in program divcif.cpp:5:1: error: stray '\302' in program divcif.cpp:5:1: error: stray '\240' in program divcif.cpp:5:1: error: stray '\302' in program divcif.cpp:5:1: error: stray '\240' in program divcif.cpp:6:1: error: stray '\302' in program for(i=a;i<=b;i++) ^ divcif.cpp:6:1: error: stray '\240' in program divcif.cpp:6:1: error: stray '\302' in program divcif.cpp:6:1: error: stray '\240' in program divcif.cpp:6:1: error: stray '\302' in program divcif.cpp:6:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program { n=i; cop=i; stg=0; ^ divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:7:1: error: stray '\302' in program divcif.cpp:7:1: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program while(cop) { ^ divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:8:2: error: stray '\302' in program divcif.cpp:8:2: error: stray '\240' in program divcif.cpp:9:3: error: stray '\302' in program if(cop%10!=0) ^ divcif.cpp:9:3: error: stray '\240' in program divcif.cpp:10:3: error: stray '\302' in program if(n%(cop%10)!=0)stg=1; ^ divcif.cpp:10:3: error: stray '\240' in program divcif.cpp:10:3: error: stray '\302' in program divcif.cpp:10:3: error: stray '\240' in program divcif.cpp:10:3: error: stray '\302' in program divcif.cpp:10:3: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program cop/=10; } ^ divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:11:5: error: stray '\302' in program divcif.cpp:11:5: error: stray '\240' in program divcif.cpp:12:5: error: stray '\302' in program if(stg==0)nr++; ^ divcif.cpp:12:5: error: stray '\240' in program divcif.cpp:12:5: error: stray '\302' in program divcif.cpp:12:5: error: stray '\240' in program divcif.cpp:12:5: error: stray '\302' in program divcif.cpp:12:5: error: stray '\240' in program divcif.cpp:13:5: error: stray '\302' in program } cout<<nr; ^ divcif.cpp:13:5: error: stray '\240' in program divcif.cpp:13:5: error: stray '\302' in program divcif.cpp:13:5: error: stray '\240' in program divcif.cpp:13:5: error: stray '\302' in program divcif.cpp:13:5: error: stray '\240' in program divcif.cpp:13:5: error: stray '\302' in program divcif.cpp:13:5: error: stray '\240' in program divcif.cpp:14:5: error: stray '\302' in program return 0;} ^ divcif.cpp:14:5: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DivCif 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ă.