CAn you please tell me what is the mistake i am commiting

https://ide.codingblocks.com/s/101648 my revised code

hey @sattyrajpoot39, this is recursive relation for this problem. Code it according to this

count(n) = 1, when 1 < = n < m
count(n) = 2, when n = m
count(n) = count(n-1) + count(n-m) when m < n