Problem binarysearch
User jaydenlol
Submission Time 2026-06-25 14:51:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:16:18: error: ‘n’ was not declared in this scope
16 | int l = 0, r = n-1, ans = -1
| ^
binarysearch.cpp:29:1: error: expected ‘}’ at end of input
29 | }
| ^
binarysearch.cpp:13:33: note: to match this ‘{’
13 | for (int i = 0; i < q; i++) {
| ^
binarysearch.cpp:29:1: error: expected ‘}’ at end of input
29 | }
| ^
binarysearch.cpp:5:15: note: to match this ‘{’
5 | signed main() {
| ^