Problem foodchain
User DoubleShaurya
Submission Time 2024-01-26 15:08:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:8:40: error: invalid operands of types ‘double’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
8 | cout << ((milk*bananas*rabbits*gb*xy) % (pow(10, 9) + 9.0));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
| | |
| double __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}