Problem foodchain
User AvMLim
Submission Time 2025-06-16 20:58:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:6:9: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
6 | o=(o*a)%(1e9+9);
| ~~~~~^~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:7:9: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
7 | o=(o*b)%(1e9+9);
| ~~~~~^~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:8:9: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
8 | o=(o*c)%(1e9+9);
| ~~~~~^~~~~~~~
| | |
| | double
| long long int
foodchain.cpp:9:9: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
9 | o=(o*d)%(1e9+9);
| ~~~~~^~~~~~~~
| | |
| |