| Problem | binarysearch |
|---|---|
| User | jaydenlol |
| Submission Time | 2026-06-25 14:49:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:19:8: error: ‘arr’ was not declared in this scope
19 | if (arr[mid] > k) {
| ^~~
binarysearch.cpp:21:14: error: expected ‘;’ before ‘}’ token
21 | r = mid-1
| ^
| ;
22 | }
| ~
binarysearch.cpp:24:13: error: expected ‘;’ before ‘}’ token
24 | l = mid+1
| ^
| ;
25 | }
| ~
binarysearch.cpp:27:21: error: expected ‘;’ before ‘}’ token
27 | cout << ans << "\n"
| ^
| ;
28 | }
| ~
binarysearch.cpp:30:1: error: expected ‘}’ at end of input
30 | }
| ^
binarysearch.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^