Problem foodchain
User kkai
Submission Time 2024-03-07 23:30:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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