Recursion subsequences error

codelink : https://pastebin.com/swTr4SYH
what’s wrong in my code please look into it and correct it

Divya, I have edited your code now, it is producing correct output, I have only included code for the printing subsequences and not counting the susequences, It would be done in a similar way, If you face any problem, just let me know it

doubt 1. why didn’t you added null in the string y u directly wrote cout<<o<<endl;
doubt 2. nice approach and of rearrangement can hint me how you thought about such arrangement

also why u initialised second string with space won’t null work here