Problem binarysearch
User yq
Submission Time 2026-06-25 14:58:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:16:11: error: ‘i’ was not declared in this scope
16 | for (A[i] < K[j]) {
| ^
binarysearch.cpp:16:18: error: ‘j’ was not declared in this scope
16 | for (A[i] < K[j]) {
| ^
binarysearch.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^
binarysearch.cpp:18:24: error: expected ‘)’ before ‘}’ token
18 | cout << count << "\n";
| ^
| )
19 | }
| ~
binarysearch.cpp:16:8: note: to match this ‘(’
16 | for (A[i] < K[j]) {
| ^
binarysearch.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^