Not getting anything while submit the code though code is working properly

#include
using namespace std;
int NoOfWays(int n , int m){
if(n==0){
return 1;
}
if(n<0){
return 0;
}
int x=NoOfWays(n-1,m);
int y=NoOfWays(n-4,m);
return x+y;

}

int main() {
int t,n,m;
cin>>t;
while(t–){
cin>>n>>m;
cout<<NoOfWays(n,m)<<endl;
}
return 0;
}

@Himanshu0123 hey himanshu this is because this problem need a dynamic approach because this problem have higher complexity and large no of overlapping subproblem so try with this dp if you have reached dp section.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.