Problem foodchain
User yf004
Submission Time 2023-12-06 19:22:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:8:19: error: no match for ‘operator>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
8 | cin >> a >> b > c >> d >> e;
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
| | |
| | long long int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
foodchain.cpp:8:19: note: candidate: ‘operator>(int, long long int)’ <built-in>
8 | cin >> a >> b > c >> d >> e;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~
foodchain.cpp:8:19: note: no known conversion for argument 1 from ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/regex:62,
from /usr/i