#include
#include<bits/stdc++.h>
using namespace std;
int fact(int x){
if (x==1||x==0){
return 1;
}else{
int ans=x*fact(x-1);
return ans;
}
}
int main() {
int n,k,s;
cin>>n>>k;
s=fact(n-1)/(fact(n+k)*fact(k-1));
cou<<s;
}
this is my code
/bin/run.sh: line 4: 18 Arithmetic exception (core dumped) ./exe
and above is the error please help me to resolve this error