Problem foodchain
User pIaceholder
Submission Time 2023-11-24 12:11:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int32_t main()’:
foodchain.cpp:10:19: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
10 | ans *= a; ans %= MOD;
| ^
foodchain.cpp:4:13: error: in evaluation of ‘operator%=(long double, int)’
4 | #define MOD 1000000009
| ^~~~~~~~~~
foodchain.cpp:10:22: note: in expansion of macro ‘MOD’
10 | ans *= a; ans %= MOD;
| ^~~
foodchain.cpp:11:19: error: invalid operands of types ‘long double’ and ‘int’ to binary ‘operator%’
11 | ans *= b; ans %= MOD;
| ^
foodchain.cpp:4:13: error: in evaluation of ‘operator%=(long double, int)’
4 | #define MOD 1000000009
| ^~~~~~~~~~
foodchain.cpp:11:22: note: in expansion of macro ‘MOD’
11 | ans *= b; ans %= MOD;
| ^~~
foodchain.cpp:12:19: error: invalid operands of type