Problem foodchain
User braven
Submission Time 2025-04-29 16:58:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:19:13: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
19 | ans = (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9));
| ~^~~~~~~~~~~
| | |
| double double
foodchain.cpp:19:28: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
19 | ans = (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9));
| ~^~~~~~~~~~~
| | |
| double double
foodchain.cpp:19:43: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator%’
19 | ans = (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9));
| ~^~~~~~~~~~~
|