What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
class B { int val;
public:
B(int v):val(v){}
int getV() const {return val;} bool operator < (const B & v) const { return val ostream & operator <<(ostream & out, const B & v) { out< template ostream & out; Out(ostream & o): out(o){} void operator() (const T & val ) { out< int main() { B t1[]={3,2,4,1,5}; B t2[]={5,6,8,2,1}; vector v1(10,0); sort(t1, t1+5); sort(t2, t2+5); set_symmetric_difference(t2,t2+5,t1,t1+5,v1.begin()); for_each(v1.begin(), v1.end(), Out(cout));cout< return 0; } Program outputs:
Jordan
2 months agoKallie
2 months agoSteffanie
2 months agoAlethea
3 months agoDion
3 months agoKrystal
3 months agoLatanya
3 months agoLai
4 months agoKristel
4 months agoDouglass
4 months agoMatthew
4 months agoArminda
4 months agoTawny
5 months agoKathrine
5 months agoShay
8 months agoDierdre
7 months agoDierdre
7 months agoDortha
7 months agoDortha
7 months agoDierdre
8 months agoKristofer
8 months agoJoesph
8 months agoKristofer
8 months agoBonita
8 months agoDenise
8 months agoRessie
7 months agoRessie
7 months agoRessie
7 months ago