Failed testcases

For the sample input given in the problem and for the sample input given by me the problem is running fine but when i am trying to submit the code its not passing any testcases.

my code link: https://ide.codingblocks.com/s/219335

Consider the sample test case given

Your Output:
1 , 2 and 7
1 , 3 and 6
1 , 4 and 5
2 , 3 and 5

Expected:
1, 2 and 7
1, 3 and 6
1, 4 and 5
2, 3 and 5

@A_2301 do you still have any doubts? In case it’s not clear, you are using an extra space after the first number.