Output is giving correct for Test Case but WA

Hi, I unlocked the Test Cases to find which test case was not getting the correct answer. The given test case does give the expected output according to the question as well as my code but the output shows wrong answer.

Hey @agrawaladitya192 it is possible that numbering of test cases is different i.e test case 1 mentioned in the checker is test case 3 provided. Please provide share your code through ide.codingblocks.com so that I’ll be able to tell you the mistakes in the code.

How do I share? It’s asking for an email id. What is the email ID?

hey @agrawaladitya192 just after taking the input insert a check if N < 3 if it is print -1 because no triplet can exist.

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.