Problem exponentiate
User jerrielchangjiebin
Submission Time 2024-12-23 10:21:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:10:16: error: ‘y’ has not been declared
10 | int cal(int x, y, z) {
| ^
exponentiate.cpp:10:19: error: ‘z’ has not been declared
10 | int cal(int x, y, z) {
| ^
exponentiate.cpp: In function ‘long long int cal(long long int, int, int)’:
exponentiate.cpp:11:20: error: ‘y’ was not declared in this scope
11 | for (int i = 1; i<y; ++i) {
| ^
exponentiate.cpp:13:15: error: ‘z’ was not declared in this scope
13 | result = (x%z) * (x%z);
| ^
exponentiate.cpp:16:10: error: ‘result’ was not declared in this scope
16 | cout << result;
| ^~~~~~