Runtime Error

Hi,
Can you pls check this if there is any runtime error in this program (in codechef complier c gcc 4.8.1 i am geting run time eeror).
also let me know how to submit the ans in chefcode.

June context
program : Chef and Subarray

//CODE DELETED

You’re not supposed to share codes/hints/complexity for problems that are a part of ongoing contest. When will you people understand?