Problem foodchain
User TheFelixKS
Submission Time 2024-03-14 11:47:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:8:21: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
8 | int i = int(a * b) % 1e9;
| ~~~~~~~~~~ ^ ~~~
| | |
| int double
foodchain.cpp:9:21: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
9 | int j = int(c * d) % 1e9;
| ~~~~~~~~~~ ^ ~~~
| | |
| int double
foodchain.cpp:10:21: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
10 | int k = int(i * j) % 1e9;
| ~~~~~~~~~~ ^ ~~~
| | |
| int double
foodchain.cpp:12:26: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
12 | printf("%i", int(k * e) % 1e9);
| ~~~~~~~~~~ ^ ~~~
| |