My code is having a problem with it

would u pls look at it?https://ide.codingblocks.com/s/248952

hello @sshreya2912
image

a)declare map outside solve function
b) in place of 1 it should be n.
c) there should be one more base case ie if n==0 return 0.

i edited it i am fetting one of my testcases wrong https://ide.codingblocks.com/s/248952

hello @sshreya2912
use ll for map as well .it will work