Why does coding blocks ide say compilation error

#include
#include
using namespace std;
int main()
{
int arr[] = {10,20,30,40,40,40,50,60,100};
int n = sizeof(arr)/sizeof(int);

int k;
cin>>k;
//binary search is used when the array is sorted
bool it = binary_search(arr,arr+n,k);
cout<<it;

if(it){
    cout<<"Present "<<end;

    //lower_bound(s,e,k) gives the address of the >= key ie 40
    //upper_bound(s,e,k) gives the address of the strictly > key ie 40
    
    auto lb = lower_bound(arr,arr+n,k);
    cout<<"the index of lower bound of "<<k<<" is "<<(lb-arr)<<endl;
    
    auto up = upper_bound(arr,arr+n,k);
    cout<<"the index of upper bound of "<<k<<" is "<<(up-arr)<<endl;
    
    cout<<"the frequency or occerrence of "<<k<<" is "(up-lb)<<endl;
    }

    else
    cout<<"absent";



return 0;

}

@Souradeep-Kundu-824545687968212 Can you send your complete code in ide.codingblocks.com

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.