Tilling problem -2

I am getting wrong answer for both recursive and DP approach I don’t what is the problem in the code
code link : https://ide.codingblocks.com/s/167622

you arent taking mod.
also where is dp?