What is the problem in this code?

https://ide.codingblocks.com/s/241703. I generate all the subsequences but the order is not the same as sample output. how to change my output to the sample output.

since u need to print in lexographically decreasing order
u can either put the resultant char* in vector
then sort it in int main before printing so that decreasing order is obtained

else
try this

i understand the above solution.https://ide.codingblocks.com/s/241772 nothing get printed on calling subsequence function i take vector<char*> here

char* is not helping print the data
out was not showing any data when u reach base condition so
i used string