fancyfence.cpp: In function 'int main()':
fancyfence.cpp:22:17: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
22 | int temp = (((H%MOD)*((H%MOD)+1))%MOD)/2;
| ~^
| |
| long long int
fancyfence.cpp:22:26: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
22 | int temp = (((H%MOD)*((H%MOD)+1))%MOD)/2;
| ~^
| |
| long long int
fancyfence.cpp:23:18: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
23 | int temp2 = (((W%MOD)*((W%MOD)+1))%MOD)/2;
| ~^
| |
| long long int
fancyfence.cpp:23:27: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
23 | int temp2 = (((W%MOD)*((W%MOD)+1))%MOD)/2;
| ~^
| |
| long long int
fancyfence.cpp:24:26: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
24 | int temp3 = (temp*temp2)%MOD;
| ~~~~~~~~~~~~^
| |
| long long int