I stuck with a big assignment problem which has this snippet of code
int t;
scanf("%d",&t);
int n[t],p[t];
for(int i=0;i<t;i++)
{
scanf("%d %d",&n[i],&p[i]);
}
for( int j=0;j<t;j++)
{
int k=0;
int arr[n[j]];
arr[n[j]]={0};
for(int i=k;i<n[j];i++)
{
arr[i]=arr[i]+1;
k++;
}
}
but in the line arr[n[j]]={0}; has an error("expected expression before '{' token") can you tell me how to declare all zeroes in this array