Problem foodchain
User polyda
Submission Time 2024-11-03 10:16:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:10:5: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
10 | ans%=1e9+9;
| ~~~^~~~~~~
foodchain.cpp:10:11: error: in evaluation of ‘operator%=(long long int, double)’
10 | ans%=1e9+9;
| ^
foodchain.cpp:12:5: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
12 | ans%=1e9+9;
| ~~~^~~~~~~
foodchain.cpp:12:11: error: in evaluation of ‘operator%=(long long int, double)’
12 | ans%=1e9+9;
| ^
foodchain.cpp:14:5: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
14 | ans%=1e9+9;
| ~~~^~~~~~~
foodchain.cpp:14:11: error: in evaluation of ‘operator%=(long long int, double)’
14 | ans%=1e9+9;
| ^
foodchain.cpp:16:5: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘op