Internal Error?

Why am I getting an internal error in my submitted solution? My code is totally correct as I it passed all test cases in practise submit (after contest ended), but I submitted 5 min earlier before contest has ended.

Problem - Contest Page | CodeChef

Please update my marks as clearly on my profile timing of submission is before the contest has ended and its showing internal error now!

Please update.

Thanks.