Problem foodchain
User aa24codebreaker
Submission Time 2023-11-14 09:35:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int32_t main()’:
foodchain.cpp:17:12: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
17 | cout << x%(pow(10,9)+9);
| ~^~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
| long long int
foodchain.cpp:24:12: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
24 | cout << x%(pow(10,9)+9);
| ~^~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
| long long int
foodchain.cpp:31:12: error: invalid operands of types ‘long long int’ and