I submitted a solution to Captain Marmot 474C. I am getting "Runtime Error" which says "Exit code is 3". I am getting the error for test case 1 for which the program is printing the answer correctly, as this is the sample test case. I am also returning 0 at the end of the code.
Here's the submission link. 27468903
I am unable to find the problem in my code. Any kind of help in this issue is appreciated. Thanks in advance.