Target sum pair

why is this code not passing all the test cases?

@ManyaGarg00
hello Manya,
a)In line no -13 it should be i+1
b) in line no -14 remove that arr[j] > arr[i] condtion
c) while printing output print smaller number first and then second number,

here is ur correctd code-> https://ide.codingblocks.com/s/189729