What is wrong with this code as the output is getting correct but all testcases are failed

#include
using namespace std;
int main() {
int i,n,f=1;
cin>>n;
for(i=1;i<=n;i++)
{
f=i*f;
}
cout<<f;
return 0;
}
Close

Can u tell the question name…since the code is not seems to be of broken calculator