Subsequences of a string;;'

my code is correct but output isnt as expected at hacker blocks
my code
https://ide.codingblocks.com/s/35256 1

question link;
https://hack.codingblocks.com/contests/c/512/73

You didn’t save the code properly.

https://ide.codingblocks.com/s/35256

This code is not complete. Please post the code which you tried properly after saving it.

In this question, you don’t need to print number of subsequences, but you have to print all the subequnces.