What do you have so far? If you post your code, we can critique it and give you help.
By the way, there a couple of questions about the assignment (the "requirements") that will affect the final solution.
1. Is the original vector allowed to have duplicate values?
2. Are values in the original vector allowed to be in the solution sub-sets multiple times or only once each (i.e. is {0, 1, 1} expected?)
I pasted vlad's code and it doesn't work in code blocks
As with the code in the lounge, you probably need to update your compiler or enable C++11 support on the one you're using. (Codeblocks is not a compiler.)
"It doesn't work" is useless in terms of getting people the necessary information to assist you. In the future, provide the errors emitted by the compiler (or a description of what happens when you run the code if it does compile.)
Actually, Code::Blocks hosts a bunch of compilers
Here's the list:
GNU GCC Compiler
Microsoft Visual c++ Toolkit 2003
Microsoft Visual c++ 2005/2008
Borland c++ Compiler (5.5,5.82)
Digital Mars compiler
OpenWatcom (W32) compiler
GNU GCC Compiler for MSP430
Cygwin GCC
LCC compiler
Intel c/c++ compiler
SDCC compiler
Tiny C compiler
GDC D compiler
Digital Mars D compiler
GNU ARM GCC Compiler
GNU ARV GCC Compiler
GNU GCC Compiler for PowerPC
GNU GCC Compiler for Tricore