Tiling Problem-II not getting submitted

Why my code is not getting submitted when everything is fine and producing correct outputs even for the highest range.Link for code - https://ide.codingblocks.com/s/116769

Change your line of code :
take c as 1000000007
and then use
for(int i=2;i<=n;i++)
{
if(i>=m)
{
dp[i]=(dp[i-1]+dp[i-m])%c;
}
else
{
dp[i]=dp[i-1];
}