Problem foodchain
User Ys
Submission Time 2022-12-24 16:34:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:14:34: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
14 | product= (arr[i]*product)%(1e9+9);
| ~~~~~~~~~~~~~~~~^~~~~~~~
| | |
| long long int double
foodchain.cpp:16:18: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
16 | cout<<product%(1e9+9);
| ~~~~~~~^~~~~~~~
| | |
| | double
| long long int