Problem exponentiate_ex
User newplayer
Submission Time 2024-02-19 05:31:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate_ex.cpp: In function ‘int32_t main()’:
exponentiate_ex.cpp:14:16: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
14 | if (b%2==0){
| ~^~
| | |
| | int
| double
exponentiate_ex.cpp:15:35: error: invalid type argument of unary ‘*’ (have ‘int’)
15 | output=fmod(output**2,m);
| ^
exponentiate_ex.cpp:26:30: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
26 | cout<<(output*save)%m<<"\n";
| ~~~~~~~~~~~~~^~
| | |
| double double