What does this error meansCompiling failed with exitcode 1, compiler output: prog.cpp:5:1: error: 'cin' does not name a type cin>>target;

my code is #include
using namespace std;
int n;
int target;
cin>>target;
void funct(int arr[], int target)
{
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if(target==arr[i]+arr[j]){
cout<<arr[i]<<" AND "<<arr[j];
}
}
}
}
int main(){
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
funct(arr[],5)
return 0;
}

@Anoushka_1805 hey anoushka I have removed error now do work on it

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.