Problem related to FCTRL2

In the Problem FCTRL2
for finding factorial of a num, i wrote the following code but this turned out to be wrong but in other compilers it’s giving right answer.

#include
using namespace std;

int main() {
int n;
int num;
cin>>n;
while(n–){
cin>>num;
int fact=1,i=1;
while(i<=num){
fact=fact*i;
i++;
}
cout<<fact<<endl;
}
return 0;
}

Check the constraints. N can be upto 100 and it is not possible to store numbers upto 100! in any of the data types.
So either use Python or you can use Boost Library in Cpp

find out how to store large numbers in vector form or string form