Runtime error

#include <stdio.h>

int main(void) {
// your code goes here
int t;
scanf("%d",&t);
while(t–)
{
int n,c,i,j,small;
scanf("%d",&n);
int a[100000000];

    for(i=0;i,n;i++)
    {
   scanf("%d",&a[i]);
    }
    
   for(i=0;i<n;i++)
   {  c=0;
       small=a[i];
       for(j=i+1;j<n;j++)
       {
           if(a[j]>small)
           c++;
       }
   printf("%d ",c);    
   }
   printf("\n");     

}
return 0;

}

why i’m getting the runtime error plz help me

#include <stdio.h>

int main(void) {
// your code goes here
int t;
scanf("%d",&t);
while(t)
{
int n,c,i,j,small;
scanf("%d",&n);
int a[1000];

for(i=0;i<n;i++)
{

scanf("%d",&a[i]);
}

for(i=0;i<n;i++)
{ c=0;
small=a[i];
for(j=i+1;j<n;j++)
{
if(a[j]>small)
c++;
}
printf("%d “,c);
}
printf(”\n");

}
return 0;
}

I think it was because of the size of your array.