#include
#include
using namespace std;
int main()
{ int n,t;
int a[10];
cin>>n;
for(int i=0;i<n;i++)
{ cin>>a[i];
cout<<endl;
}
cin>>t;
for(int i=0;i<n-1;i++)
{ for(int j=i+1;j<n;j++)
{ if((t==a[i]+a[j])&&(a[i]<a[j]))
{ cout<<a[i]<<“and”<<a[j]<<endl;
}
if((t==a[i]+a[j])&&(a[i]>a[j]))
{ cout<<a[j]<<“and”<<a[i]<<endl;
}
}
}
return 0;
}
i am unable to understand why my code is wrong and why is it not passing even one test case .please clear my doubt