Problem | exponentiate |
---|---|
User | christal |
Submission Time | 2023-12-20 14:57:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:7:9: error: ‘b’ was not declared in this scope
7 | if (b == 0){
| ^
exponentiate.cpp:10:16: error: ‘a’ was not declared in this scope
10 | return (expo(a, b-1) * a)%MOD;
| ^
exponentiate.cpp:12:25: error: invalid operands of types ‘int’ and ‘int [1000005]’ to binary ‘operator%’
12 | return (save * save)%MOD;
| ~~~~~~~~~~~~~^~~~
| | |
| int int [1000005]