https://ide.codingblocks.com/s/186775 this my saved code this code is able to pass all the test case except the 0th thest case i cant find any problem in the code so pease help.
Test Case 0 Not Passing
@Siddharth6780 you need to print the pairs in increasing order mutually as well. So first you need to sort the array and then find the pairs. You can then write your loop as
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if(a[i]+a[j]==target)
cout<<a[i]<<" and "<<a[j]<<endl;
}
}