Tilling problem-ii

hey, i have done this problem only through recursion and without DP as i havent reached dp yet.
i want to print all the ways by which i can tile the floor.

its giving partially correct ways for various test cases

https://ide.codingblocks.com/s/317001 this is the link to my code

thanks