Problem exponentiate
User matt
Submission Time 2024-01-10 13:04:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:6:11: error: ‘a’ was not declared in this scope
6 | int power(a,b){
| ^
exponentiate.cpp:6:13: error: ‘b’ was not declared in this scope
6 | int power(a,b){
| ^
exponentiate.cpp:6:14: error: expression list treated as compound expression in initializer [-fpermissive]
6 | int power(a,b){
| ^
exponentiate.cpp: In function ‘int32_t main()’:
exponentiate.cpp:23:35: error: ‘power’ cannot be used as a function
23 | cout<<fmod(power(a[i],b[i]),m[i])<<"\n";
| ^