#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 | #16151330 | Utilizator | |
Fișier | puteri2.cpp | Dimensiune | 471 B |
Data încărcării | 07 Iunie 2019, 18:09 | Scor / rezultat | Eroare de compilare |
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 puteri2.cpp: In function 'int exp(int, int)': puteri2.cpp:10:13: error: expected ',' or ';' before 'tmp' tmp=tmp*a; ^ puteri2.cpp: In function 'int main()': puteri2.cpp:23:13: error: 'i' was not declared in this scope for(i=1;i<=cif;i++) ^
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ă.