Why is this not getting accepted

#include
using namespace std;
#define ll long long
ll compute(ll n)
{
if(n==1 || n==0)
{
return 1;
}
ll answer=compute(n-1)+(n-1)*compute(n-2);
return answer;
}
int main()
{
ll n;
cin>>n;
cout<<compute(n);
return 0;
}

@praritv1 i think it is because you are not taking the input for test cases, there can be more than one test case.
Also remember to print a new line after every test case.

Feel free to ask if you have some other doubt in this otherwise please mark it as resolved.