Problem foodchain
User tdb60
Submission Time 2023-11-08 13:36:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:6:16: error: invalid operands of types ‘long long int’ and ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} to binary ‘operator%’
6 | n = A*B*C*D*E % (pow(10,9)+9);
| ~~~~~~~~~ ^ ~~~~~~~~~~~~~
| | |
| long long int __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
foodchain.cpp:7:7: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
7 | cout >> n;
| ~~~~ ^~ ~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
foodchain.cpp:7:7: note: candidate: ‘operator>>(int, long long int)’ <built-in>
7 | cout >> n;
| ~~~~~^~~~
foodchain.cpp:7:7: note: no known conversion for argument 1 from ‘s