Problem | exponentiate |
---|---|
User | justin271828 |
Submission Time | 2023-06-17 17:25:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int ex(int, int)’:
exponentiate.cpp:10:22: error: expected ‘;’ before ‘if’
10 | M[y/2] = ex(x, y/2)
| ^
| ;
11 | if (y%2 == 1) {
| ~~
exponentiate.cpp:14:3: error: ‘else’ without a previous ‘if’
14 | else {
| ^~~~