Problem foodchain
User Schoolpurposes
Submission Time 2025-01-03 20:41:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int32_t main()’:
foodchain.cpp:22:20: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
22 | cout << result % 1e9 + 9;
| ~~~~~~ ^ ~~~
| | |
| | double
| long long int