MAKEART:SIGEMT error on submission

https://www.codechef.com/viewsolution/28580007.
Code runs fine on compilation but gives error on submission .

You’re creating this array:

int a[n];

before initialising n.

2 Likes