1 test case not passsing

I have used the inbuilt binary search function of STL. I have oone test case which isn’t passing. Pls check.
Link: https://ide.codingblocks.com/s/224012

hello @rmukhopadhyay_be17
binary search stl works on sorted array only.
here u are given unsorted array so u need to implement ur own binary search while for the given array.

I have applied binary search on sorted array. Please check the code. I have found the pivot element and have called binary_search on both halves.

check ur code output for->
10
6
7
8
9
0
1
2
3
4
5

0
it is giving -1.

replace pivot with pivot +1 while calling bsearch or lower bound it will resolve ur issue.