Borderou de evaluare (job #2265144)
Utilizator | Data | 20 octombrie 2018 17:10:34 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int putere(long long int, long long int)':
main.cpp:7:8: error: 'x' was not declared in this scope
if(x)
^
main.cpp:10:19: error: 'a' was not declared in this scope
return putere(a,x/2)*putere(a,x/2);
^
main.cpp:12:12: error: 'a' was not declared in this scope
return a*putere(a,(x-1)/2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !