Target sum triplets

The code is running fine but failing all test cases

Hi @GreatCoderboy123
Please share your code ide so that i can have a look.

here is the link…

@GreatCoderboy123
Your code is failing all test cases because you have added an extra comma after the a[left].
It should be like this :
cout<<a[i]<<", “<<a[left]<<” "<<"and "<<a[right]<<endl;

ok…thanks…now the test cases are correct