Problem foodchain
User Bob
Submission Time 2023-11-08 21:53:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:13:4: error: invalid operands of types ‘long long unsigned int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
13 | f %= pow(10,9)+9;
| ~~^~~~~~~~~~~~~~
foodchain.cpp:13:17: error: in evaluation of ‘operator%=(long long unsigned int, __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double})’
13 | f %= pow(10,9)+9;
| ^