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

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:19:15: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
19 | cout << (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9))
| ~^~~~~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:19:30: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
19 | cout << (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9))
| ~^~~~~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:19:45: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
19 | cout << (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e