No test case passing

In the above question my code is producing the correct output but none of the test cases are passing , please check and tell me why

It is given that the output must be in sorted order. You 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.You should then sort the resulting vector in the main before printing the final result.
You can refer this https://ide.codingblocks.com/s/250592