What happens when you attempt to compile and run the following code?
#include
#include
#include
using namespace std;
template
ostream & out;
Out(ostream & o): out(o){}
void operator() (const T & val ) { out< int main() { int t1[]={3,2,4,1,5}; int t2[]={5,6,8,2,1}; vector sort(t1, t1+5); sort(t2, t2+5); set_union(t1,t1+5,t2,t2+5,v1.begin()); for_each(v1.begin(), v1.end(), Out return 0; } Program outputs:
Berry
26 days agoRyann
28 days agoElvera
30 days agoElmira
7 days agoJaleesa
8 days agoZack
9 days agoKimberely
1 months agoEleonora
5 days agoLeota
8 days agoLaura
13 days agoLacey
1 months agoHershel
18 days agoDorethea
23 days agoArthur
2 months agoRanee
2 months agoKiera
2 months agoJillian
2 months agoLynna
2 months agoJillian
2 months ago