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

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:15:18: error: ‘n’ was not declared in this scope
15 | int l = 0, r = n-1, ans = -1
| ^
binarysearch.cpp:29:1: error: expected ‘}’ at end of input
29 | }
| ^
binarysearch.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^