#include
#include<bits/stdc++.h>
#include
using namespace std;
int main()
{
int arr[]={1,10,11,9,100};
int n= sizeof(arr)/sizeof(int);
int key;
cin>>key;
auto it=(arr,arr+n,key);
cout<<it<<endl;
int index= it - arr;
if(index==n)
cout<<key<<"not present";
else
cout<<"present at address"<<index;
return 0;
}
//GETTING ERROR WITH THE CODE AND THE ERROR IS:
invalid operands of types ‘int’ and ‘int [5]’ to binary ‘operator-’
int index= it - arr;
~^~~
//HELP ME TO FIX