what is wrong is this code, codechef is showing wrong answer?
#include<iostream>
using namespace std;
int fact (int x){
if(x <=1){
return 1;
}
return x*fact(x-1);
}
int main(){
int t;
cin>>t;
int arr[t];
for(int i = 0<t;i++){
int x;
cin>> x;
arr[i]=fact(x) ;
}
for(int i = 0; i <t; i++)
{
cout<<arr[i]<<endl;
}
}`