Problem mandarins
User chog
Submission Time 2023-04-05 22:00:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mandarins.cpp: In function ‘int main()’:
mandarins.cpp:11:21: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘double’ to binary ‘operator%’
11 | cout << pow(K+1,N)%(pow(10.0,9.0)+7);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
| | |
| | double
| __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}