Problem | binarysearch |
---|---|
User | aiden |
Submission Time | 2025-07-26 17:59:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
binarysearch.cpp:4:1: error: expected ‘,’ or ‘;’ before ‘int’
4 | int q,n;
| ^~~
binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:8:9: error: ‘n’ was not declared in this scope
8 | cin >> n >> q;
| ^
binarysearch.cpp:8:14: error: ‘q’ was not declared in this scope
8 | cin >> n >> q;
| ^
binarysearch.cpp:22:24: error: expected ‘;’ before ‘}’ token
22 | l = x+1
| ^
| ;
23 | }
| ~