Sum It Up(backtracking exercise)

code:https://ide.codingblocks.com/s/79126
I am unable to print output in desired format. Currently I am using vectors and set and the desired output is stored in the set. but printing the output gives this error: prog.cpp:34:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘const std::vector’)
cout<<*itr<<endl;

I am new to STL so please help me out.

hi siddharth


only a small change is made and i have commented that part of the change.
it is basically in the output section

Thanks I understood what I was doing wrong. Can you suggest any source to learn STL in detail