| Problem | binarysearch |
|---|---|
| User | Jaysonwee22 |
| Submission Time | 2026-06-25 15:10:56 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:10:43: error: expected ‘;’ before ‘sort’
10 | for (int i = 0; i < n; i++) cin >> arr[i]
| ^
| ;
11 |
12 | sort(arr, arr+n);
| ~~~~
binarysearch.cpp:15:6: error: expected ‘(’ before ‘)’ token
15 | for )int i = 0; i < q; i++) {
| ^
| (
binarysearch.cpp:15:6: error: expected primary-expression before ‘)’ token
binarysearch.cpp:15:18: error: ‘i’ was not declared in this scope
15 | for )int i = 0; i < q; i++) {
| ^
binarysearch.cpp:17:23: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
17 | int left = 0; right = n, mid;
| ~~~~~~^~~
binarysearch.cpp:17:28: error: ‘mid’ was not declared in this scope
1