Can u plz tekk me what is the error int this code

It is given that the output must be in sorted order. Your code will generate the correct permutations but it is not guaranteed that your output will be sorted. For that…instead of printing in base case…you must push it in a vector in the base case.You should then sort the resulting vector in the main before printing the final result.

but i have’nt studied vectors yet

inserting into set and then printing would work???

Yes that will also work.
In the base case, push the string in the set

in this que how it will generate all subsets without even using backtracking???

The parameters passed to recursive function are passed by value (as in string ) and not by reference.So backtracking is not required.(because in pass by value, separate copy is made and send to the function. So modifications done in the passed string will not be reflected in the original string)
Backtracking would be necessary if the parameter was passed by reference.