Borderou de evaluare (job #2178179)
Utilizator | Data | 19 martie 2018 11:11:51 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long unsigned int lgput(unsigned int, unsigned int)’:
user.cpp:15:19: error: ‘i’ was not declared in this scope
else if (p%2==0) {i=lgput(n,p/2)%1999999973; return i*i%1999999973;}
^
user.cpp:16:19: error: ‘i’ was not declared in this scope
else if (p%2==1) {i=lgput(n,p/2)%1999999973; return i*i*n%1999999973;}
^
user.cpp:17:11: error: a function-definition is not allowed here before ‘{’ token
int main(){
^
user.cpp:23:1: error: expected ‘}’ at end of input
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !