#843
Puteri2
Determinaţi numărul format din ultimele p
cifre ale lui a
n
.
Problema | Puteri2 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16151046 | Utilizator | |
Fișier | puteri2.cpp | Dimensiune | 474 B |
Data încărcării | 07 Iunie 2019, 17:35 | Scor / rezultat | Eroare de compilare |
puteri2.cpp:3:1: error: stray '\302' in program int m,p,cif,i,nr; ^ puteri2.cpp:3:1: error: stray '\240' in program puteri2.cpp:4:1: error: stray '\302' in program int exp(int a, int n) ^ puteri2.cpp:4:1: error: stray '\240' in program puteri2.cpp:4:1: error: stray '\302' in program puteri2.cpp:4:1: error: stray '\240' in program puteri2.cpp:4:1: error: stray '\302' in program puteri2.cpp:4:1: error: stray '\240' in program puteri2.cpp:4:1: error: stray '\302' in program puteri2.cpp:4:1: error: stray '\240' in program puteri2.cpp:6:5: error: stray '\302' in program if(n==0) return 1; ^ puteri2.cpp:6:5: error: stray '\240' in program puteri2.cpp:6:5: error: stray '\302' in program puteri2.cpp:6:5: error: stray '\240' in program puteri2.cpp:9:9: error: stray '\302' in program long long tmp=exp(a,n-1); ^ puteri2.cpp:9:9: error: stray '\240' in program puteri2.cpp:9:9: error: stray '\302' in program puteri2.cpp:9:9: error: stray '\240' in program puteri2.cpp:11:6: error: stray '\302' in program return tmp%nr; ^ puteri2.cpp:11:6: error: stray '\240' in program puteri2.cpp:15:9: error: stray '\302' in program long long tmp=exp(a,n/2); ^ puteri2.cpp:15:9: error: stray '\240' in program puteri2.cpp:15:9: error: stray '\302' in program puteri2.cpp:15:9: error: stray '\240' in program puteri2.cpp:16:9: error: stray '\302' in program return (tmp*tmp)%nr; ^ puteri2.cpp:16:9: error: stray '\240' in program puteri2.cpp:19:1: error: stray '\302' in program int main() ^ puteri2.cpp:19:1: error: stray '\240' in program puteri2.cpp:21:1: error: stray '\302' in program cin>>m>>p>>cif; ^ puteri2.cpp:21:1: error: stray '\240' in program puteri2.cpp:21:1: error: stray '\302' in program puteri2.cpp:21:1: error: stray '\240' in program puteri2.cpp:21:1: error: stray '\302' in program puteri2.cpp:21:1: error: stray '\240' in program puteri2.cpp:21:1: error: stray '\302' in program puteri2.cpp:21:1: error: stray '\240' in program puteri2.cpp:22:1: error: stray '\302' in program nr=1; ^ puteri2.cpp:22:1: error: stray '\240' in program puteri2.cpp:22:1: error: stray '\302' in program puteri2.cpp:22:1: error: stray '\240' in program puteri2.cpp:22:1: error: stray '\302' in program puteri2.cpp:22:1: error: stray '\240' in program puteri2.cpp:22:1: error: stray '\302' in program puteri2.cpp:22:1: error: stray '\240' in program puteri2.cpp:23:1: error: stray '\302' in program for(i=1;i<=cif;i++) ^ puteri2.cpp:23:1: error: stray '\240' in program puteri2.cpp:23:1: error: stray '\302' in program puteri2.cpp:23:1: error: stray '\240' in program puteri2.cpp:23:1: error: stray '\302' in program puteri2.cpp:23:1: error: stray '\240' in program puteri2.cpp:23:1: error: stray '\302' in program puteri2.cpp:23:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program nr=nr*10; ^ puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:24:1: error: stray '\302' in program puteri2.cpp:24:1: error: stray '\240' in program puteri2.cpp:25:1: error: stray '\302' in program cout<<exp(m,p); ^ puteri2.cpp:25:1: error: stray '\240' in program puteri2.cpp:25:1: error: stray '\302' in program puteri2.cpp:25:1: error: stray '\240' in program puteri2.cpp:25:1: error: stray '\302' in program puteri2.cpp:25:1: error: stray '\240' in program puteri2.cpp:25:1: error: stray '\302' in program puteri2.cpp:25:1: error: stray '\240' in program puteri2.cpp:26:1: error: stray '\302' in program return 0; ^ puteri2.cpp:26:1: error: stray '\240' in program puteri2.cpp:26:1: error: stray '\302' in program puteri2.cpp:26:1: error: stray '\240' in program puteri2.cpp:26:1: error: stray '\302' in program puteri2.cpp:26:1: error: stray '\240' in program puteri2.cpp:26:1: error: stray '\302' in program puteri2.cpp:26:1: error: stray '\240' in program puteri2.cpp:26:1: error: stray '\302' in program puteri2.cpp:26:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Puteri2 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ă.