Problem runaway
User ervinthedamsel
Submission Time 2025-06-19 16:37:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

runaway.cpp: In function ‘int main()’:
runaway.cpp:25:18: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
25 | cout << cout << (*lb - *(--lb))/2 << '\n';
| ~~~~ ^~ ~~~~
| | |
| | basic_ostream<[...]>
| basic_ostream<[...]>
runaway.cpp:25:18: note: candidate: ‘operator<<(int, int)’ <built-in>
25 | cout << cout << (*lb - *(--lb))/2 << '\n';
| ~~~~~^~~~~~~
runaway.cpp:25:18: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,