Array target sum triplets


this is the link of my,
its not passing any test case , please check it once and update my code and mention the mistake of mine with the help of comments in the code
thankyou

runguard: warning: timelimit exceeded (wall time): aborting command runguard: warning: command terminated with signal 15 this is the error which i am getting during compiling , why??? but while i submit my code it passed all the test cases

You might not have given any input.
try with input

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.