Getting Wrong Answer Result While Uploading Same Code

,

I am getting Wrong Result answer after submitting same code. Can anyone enlighten me whether it is error of server or something else?
Accepted Code Link: Solution: 65636778 | CodeChef
Not Accepted Link: Solution: 65636748 | CodeChef

Your code that was Accepted should give \text{\red{RTE}}. But it passed somehow. The 2^{nd} for-loop should be for(j = 0; j < n - 1; j++) instead of for(j = 0; j < n; j++).