Https://ide.codingblocks.com/#/s/16695

https://ide.codingblocks.com/#/s/16695
it is for array , target pair sum.
2 cases are getting wrong output.what’s the problem

You have to print the output in the sorted order but you are not doing that . Like if 6 and 5 is a pair then u have to print 5 and 6 but it code will print 6 and 5
So just take care of the order while printing