Borderou de evaluare (job #2118817)
Utilizator | Data | 31 ianuarie 2018 09:14:58 | |
---|---|---|---|
Problema | Modulo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int pow(long long int, long long int)’:
user.cpp:14:45: error: ‘power’ was not declared in this scope
else if(p%2 == 0) return (power(x*x, p/2))%mod;
^
user.cpp:15:53: error: ‘power’ was not declared in this scope
else if(p%2 == 1) return (x * power(x*x, (p-1)/2))%mod;
^
user.cpp: In function ‘int main()’:
user.cpp:23:18: error: ‘power’ was not declared in this scope
x = power(x,p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !