Problem exponentiate_ex
User newplayer
Submission Time 2024-02-19 05:29:24
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:37: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
15 | output=(output*output)%m;
| ~~~~~~~~~~~~~~~^~
| | |
| double double
exponentiate_ex.cpp:17:21: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
17 | }else if(b%2==1){
| ~^~
| | |
| | int
| double
exponentiate_ex.cpp:19:24: error: invalid operands of types ‘double’ and ‘double’ to binar