Problem foodchain
User user8113912201514
Submission Time 2026-11-16 16:19:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:10:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
10 | a = a % 1000000009;
| ~ ^ ~~~~~~~~~~
| | |
| | int
| double
foodchain.cpp:11:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
11 | b = b % 1000000009;
| ~ ^ ~~~~~~~~~~
| | |
| | int
| double
foodchain.cpp:12:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
12 | c = c % 1000000009;
| ~ ^ ~~~~~~~~~~
| | |
| | int
| double
foodchain.cpp:13:8: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
13 | d = d % 1000000009;
| ~ ^ ~~~~~~~~~~
| | |
| | int
| double
foodchain.cpp:14:8: error: invalid opera