#include<stdio.h>

#include<stdlib.h>

```
int main()
{
int *num,j;
long long *fact;
int t,i;
num=(int *)malloc(t*sizeof(int));
fact=(long long *)malloc(t*sizeof(long long));
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%d",&num[i]);
fact[i]=1;
}
for(i=1;i<=t;i++)
{
for(j=num[i];j>=1;j--)
{
fact[i]=j*fact[i];
}
}
for(i=1;i<=t;i++)
{
printf("\n%lld",fact[i]);
}
system("PAUSE");
return 0;
}
```

What is wrong with this code??? Cant understand…