Problem binarysearch
User god
Submission Time 2025-07-08 20:32:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:5:15: error: ‘sync_wth_stdio’ is not a member of ‘std::ios_base’
5 | ios_base::sync_wth_stdio(0);
| ^~~~~~~~~~~~~~
binarysearch.cpp:14:27: error: expected ‘;’ before ‘for’
14 | sort(array, array+len)
| ^
| ;
15 | for(int i=0;i<query;i++) {
| ~~~
binarysearch.cpp:15:17: error: ‘i’ was not declared in this scope
15 | for(int i=0;i<query;i++) {
| ^