I've written the following code for a codechef problem. Everytime I submit I get a NZEC error. Any ideas?
#include<stdio.h>
int main()
{
int n=0,s=0;
int a[2001][2001]={0},i=0,k=0,c=0;
scanf("%d%d",&n,&s);
for(i=0;i<s;i++)
{
scanf("%d",&c);
for(k=0;k<c;k++)
{
scanf("%d",&a[i][k]);
}
}
printf("%d\n",s);
for(i=0;i<s;i++)
printf("%d\n",i);
return 0;
}