Problem foodchain
User ybc
Submission Time 2023-11-08 14:50:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:7:3: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
7 | A%=pow(10,9)+9;
| ~^~~~~~~~~~~~~
foodchain.cpp:7:15: error: in evaluation of ‘operator%=(long long int, __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double})’
7 | A%=pow(10,9)+9;
| ^