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
7 months agoKallie
7 months agoSteffanie
7 months agoAlethea
7 months agoDion
8 months agoKrystal
8 months agoLatanya
8 months agoLai
8 months agoKristel
9 months agoDouglass
9 months agoMatthew
9 months agoArminda
9 months agoTawny
9 months agoKathrine
9 months agoShay
1 year agoDierdre
12 months agoDierdre
12 months agoDortha
1 year agoDortha
1 year agoDierdre
1 year agoKristofer
1 year agoJoesph
1 year agoKristofer
1 year agoBonita
1 year agoDenise
1 year agoRessie
12 months agoRessie
1 year agoRessie
1 year ago