Problem foodchain
User ZhangChi
Submission Time 2026-11-07 17:29:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:16:14: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator%’
16 | ans = sum%(1e9+9);
| ~~~^~~~~~~~
| | |
| int double