Problem exponentiate
User Kishan
Submission Time 2023-06-19 10:02:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘long long int exp(long long int, long long int)’:
exponentiate.cpp:6:6: error: ‘p’ was not declared in this scope
6 | if (p == 0) return 1;
| ^
exponentiate.cpp:7:19: error: ‘p’ was not declared in this scope
7 | int x = exp(a,p/2);
| ^