Problem | exponentiate |
---|---|
User | scape167 |
Submission Time | 2024-01-08 14:57:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘ll half(ll, ll, ll)’:
exponentiate.cpp:7:9: error: expected ‘,’ or ‘;’ before ‘if’
7 | if (b%2 == 0){
| ^~
exponentiate.cpp:10:8: error: expected ‘}’ before ‘else’
10 | else{
| ^~~~
exponentiate.cpp:5:16: note: to match this ‘{’
5 | if (b != 0){
| ^
exponentiate.cpp:11:22: error: ‘k’ was not declared in this scope
11 | ll n = (k*k)%m;
| ^
exponentiate.cpp: At global scope:
exponentiate.cpp:15:5: error: expected unqualified-id before ‘else’
15 | else return 1;
| ^~~~
exponentiate.cpp:16:1: error: expected declaration before ‘}’ token
16 | }
| ^