Subsequences of a string;;

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

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

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

Hey!!
The code that you have provided doesn’t belong to this question.

In this question you just need to print all the subsequences of the given string.
Take care of the order in which the substrings are printed.
It should be same as mentioned on Hackerblocks