Target sum triplets

i am not getting one of the pair possibly the a[i] is not incrementing plz check the codehttps://ide.codingblocks.com/s/238364

What is ur doubt? Ur submission is showing that u score full in this question.