CodeChef: Practical coding for everyone.
Code runs fine on compilation but gives error on submission .
You’re creating this array:
int a[n];
before initialising n
.
2 Likes
CodeChef: Practical coding for everyone.
Code runs fine on compilation but gives error on submission .
You’re creating this array:
int a[n];
before initialising n
.