Problem foodchain
User braven
Submission Time 2025-04-29 16:58:15
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 ‘long long int’ and ‘double’ to binary ‘operator%’
19 | ans = (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9));
| ~^~~~~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:19:28: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
19 | ans = (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9));
| ~^~~~~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:19:43: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
19 | ans = (a%((10e9)+9))*(b%((10e9)+9))*(c%((10e9)+9))*(d%((10e9)+9))*(e%((10e9)+9));<