| Problem | binarysearch |
|---|---|
| User | abdullahmazlan13 |
| Submission Time | 2026-06-25 15:55:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:12:14: error: ‘a’ was not declared in this scope
12 | cin >> vec [a]
| ^
binarysearch.cpp:15:9: error: ‘l’ was not declared in this scope
15 | while (l => r) {int mid = (l + r) / 2;
| ^
binarysearch.cpp:15:12: error: expected primary-expression before ‘>’ token
15 | while (l => r) {int mid = (l + r) / 2;
| ^
binarysearch.cpp:15:14: error: ‘r’ was not declared in this scope
15 | while (l => r) {int mid = (l + r) / 2;
| ^
binarysearch.cpp:16:6: error: ‘arr’ was not declared in this scope
16 | if (arr [mid] >= x){
| ^~~
binarysearch.cpp:16:19: error: ‘x’ was not declared in this scope
16 | if (arr [mid] >= x){
| ^
binarysearch.cpp:17:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
17 | ans = mid;