Whats the mistake in my code

#include
using namespace std;

int Target(int a[],int n,int b)

{
for(int i=0;i<n;i++)
{for(int j=0;j<i;j++)
{
if(a[i]+a[j]==b)
{cout<<a[j]<<" and "<<a[i];
cout<<endl;}
}
}
}
int main() {
int n,i,a[1000],j,b;
cin>>n;
for(i=0;i<n;i++)
cin>>a[i];
cin>>b;
Target(a,n,b);
return 0;
}

I have edited your code… Try to submit them now…
https://ide.codingblocks.com/s/166591

plz explain the parameters inside the sort function

??plz tellll…