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