Problem burgers
User wtnetlegend
Submission Time 2025-11-19 21:19:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

burgers.cpp: In function ‘int main()’:
burgers.cpp:42:24: error: invalid operands of types ‘std::ios_base&(std::ios_base&)’ and ‘std::ios_base&(std::ios_base&)’ to binary ‘operator+’
42 | ll mid = (left + right) / 2;
| ~~~~ ^ ~~~~~
| | |
| | std::ios_base&(std::ios_base&)
| std::ios_base&(std::ios_base&)
burgers.cpp:45:18: error: assignment of function ‘std::ios_base& std::left(std::ios_base&)’
45 | left = mid + 1;
| ~~~~~^~~~~~~~~
burgers.cpp:47:19: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
47 | right = mid - 1;
| ~~~~~~^~~~~~~~~