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