question https://hack.codingblocks.com/contests/c/512/912
code https://ide.codingblocks.com/s/45084
please correct the errors in the code
Backtracking sum it up
Hey Chinmay, in this problem you are supposed to print all the combinations in sorted order and for that you can take vector<vector<int> > or set<vector<int> >, which will store all the unique combinations in sorted order and then you can print them. So, store your output array (int* out) in vector<vector<int> > or set<vector<int> > and print that vector or set when all the combinations are computed.