Problem binarysearch
User yuanbin
Submission Time 2026-07-07 19:03:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:15:27: error: expected ‘;’ before ‘for’
15 | sort(ls.begin(),ls.end())
| ^
| ;
16 | for (int i = 0; i<queries; i++){
| ~~~
binarysearch.cpp:16:18: error: ‘i’ was not declared in this scope
16 | for (int i = 0; i<queries; i++){
| ^