Unable to get the correct output

My code is giving the wrong output. I think I’m using the string array wrongly. Here’s my code: https://ide.codingblocks.com/s/646644

hi @mitrapranav0027_5d705c8b616e0add
according to o/p format u will have to print the results in sorted format… for that store all the subsequences in a vector, sort them, and then print the final ans…
refer this code -->

I haven’t reached the vector part of the course yet. Should I study that before solving this code? I used a string array and it dind’t work. I added sort to my code too: https://ide.codingblocks.com/s/646644


i have replaced vector with array…

My code is same as your just that I used character array instead of string. Can you please tell what’s wrong with my code?

hi @mitrapranav0027_5d705c8b616e0add
both the codes are not same except the character array and string difference, kindly go through the code I sent u above…

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.