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.