Help me with code?

code link: https://ide.codingblocks.com/s/217908

What help you need in this. You write the main function twice. Please delete 2nd main function from the program and your program will correctly run.

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.

getting wrong answer link: https://ide.codingblocks.com/s/233809

@siddharth9k9
Try to fix the error once by working on this test case
Q : 2
5
99999 89565 8050 1234999 111
A : 1235110

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.