Problem burgers
User hygyatthis
Submission Time 2026-07-07 09:03:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

burgers.cpp: In function ‘int main()’:
burgers.cpp:37:10: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const long long int’)
37 | cout >> max(max1,max2);
| ~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| | const long long int
| std::ostream {aka std::basic_ostream<char>}
burgers.cpp:37:10: note: candidate: ‘operator>>(int, long long int)’ <built-in>
37 | cout >> max(max1,max2);
| ~~~~~^~~~~~~~~~~~~~~~~
burgers.cpp:37:10: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from burgers.cpp:3:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operat