test case 0 is showing wrong answer
#include
#include
using namespace std;
int main(){
int n;
cin>>n;
int a[n];
for(int i = 0; i < n; i++){
cin>>a[i];
}
int key;
cin>>key;
int *p = find(a,a+n,key);
bool present = binary_search(a,a+n,key);
if(present == true){
cout<<p-a<<endl;
}
else{
cout<<"-1";
}
return 0;
}