Code does not run!

Hi guys,
The last 3 or 4 programs that i tried submitting from the easy practice questions, run fine on mt machine (in Dev C++), but there is some or the other error when i try submitting it. It just doesn’t run.
Can someone tell why? I am submitting in 4.3.2 grade C++.

please give the link to any of your solutions

Maybe you are not sign in , while submitting the code :stuck_out_tongue:

1 Like

@rishul_nsit
http://www.codechef.com/viewsolution/3010119

the runtime error is due to outofbound in array a in the first for loop. you have declared a[20] whereas 1<=n<=100000.
hope this helps:)

//