Problem binarysearch
User Devthethala
Submission Time 2026-06-25 15:48:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:16:28: error: expected ‘)’ before ‘{’ token
16 | for( int i = 0; i <= q;i++{
| ~ ^
| )
binarysearch.cpp:20:26: error: ‘x’ was not declared in this scope
20 | if(A[mid] >= x){
| ^