Run time error for CSUB , July challenge

Can anybody help me with this. I am getting a Runtime error for the problem Count Substrings(CSUB),July challenge.
The link to my code is given below. Please tell me what is wrong with this code.
Link to code - http://www.codechef.com/viewsolution/4184044

check the syntax.

Sir it is working fine in my PC.
Please tell me whether my code is using too much of memory or not.

1 Like

Common, it’s an ongoing contest, you CANNOT ask for help!!!

You can get only some general advice, try to make it working on ideone.com, but login there and make your code private, otherwise you might have a problem…

ok, sorry. I will try to do it on my own.