Run time error

guys, all my submissions are being rejected because of these run time time errors.But they are working fine in my compiler.I think it might be due to these ‘long int’ type variables.Please would you suggest me a best alternative for this problem…

@rohith_2194:

Assuming that u are trying to solve a problem from running contest the best help that could be provided as of now is to provide you with the reasons that might cause RTE. The list by Codechef on its FAQ page.

Hope this helps u to correct ur code.

//