Problem exponentiate
User zsinfo2010
Submission Time 2025-07-18 13:48:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int32_t main()’:
exponentiate.cpp:12:14: error: two or more data types in declaration of ‘result’
12 | int double result = double pow(a,b) % m;
| ^~~~~~
exponentiate.cpp:12:23: error: expected primary-expression before ‘double’
12 | int double result = double pow(a,b) % m;
| ^~~~~~
exponentiate.cpp:13:10: error: ‘result’ was not declared in this scope
13 | cout<< result <<'\n';
| ^~~~~~