Problem mandarins
User chog
Submission Time 2023-04-05 21:59: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 ‘int’ to binary ‘operator%’
11 | cout << pow(K+1,N)%1000000007;
| ~~~~~~~~~~^~~~~~~~~~~
| | |
| | int
| __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}