https://ide.codingblocks.com/#/s/15352
wrong answer
Provide the Qn link as well
You have to print unique subsequence of the given string but as you are saving all the subsequences of the string it may possible that there are same subsequences as in
s = aab
Hi first of fall there is no need of mycompare function.
Second your mistake is you are not clearing vector after function call. So output is wrong. use v.clear() after function call.