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

Compile Error

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