I’m getting WA even though my outputs are correct. Please help me debugg the error
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t–)
{
int i,n;
int m=1;
cin>>n;
for(i=1;n>0;i++)
{
m=m*i;
n--;
}
cout<<m<<endl;
}
return 0;
}