What m doing wrong in this 10 lines?
`#include<iostream[link text][1]>using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t,n,res=1,i;
cin >> t;
while(t!=0){
cin>>n;
if(n>=0){
for(i=1;i<=n;i++) {
res=res*i;
}
cout<<res<<endl;
res=1;
}
t--;
}
return 0;
}`