Problem foodchain
User Biologyhater123
Submission Time 2025-06-10 15:08:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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