Help me in solving COINS problem

My issue

as the number of test case isn’t given in the input section …what should I do to modify my code so that it can run for every cases given in input .

My code

#include <bits/stdc++.h>
const long long int N=10e7;
using namespace std;

int dp[N];

int func(int n)
	if(n<=11) return n;
	else if(dp[n]!=-1) return dp[n];
	return dp[n]=max(n,func(n/2)+func(n/3)+func(n/4));

int main() {
	// your code goes here

	     int n;
	return 0;

Problem Link: COINS Problem - CodeChef