Problem binarysearch
User DuckyKayden
Submission Time 2026-01-14 17:20:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int32_t main()’:
binarysearch.cpp:19:15: error: ‘lo’ was not declared in this scope; did you mean ‘l’?
19 | while(lo < hi - 1) {
| ^~
| l
binarysearch.cpp:19:20: error: ‘hi’ was not declared in this scope; did you mean ‘i’?
19 | while(lo < hi - 1) {
| ^~
| i
binarysearch.cpp:27:17: error: ‘hi’ was not declared in this scope; did you mean ‘i’?
27 | cout << hi << "\n";
| ^~
| i