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
29 days agoRyann
1 months agoElvera
1 months agoElmira
9 days agoJaleesa
10 days agoZack
11 days agoKimberely
1 months agoEleonora
7 days agoLeota
10 days agoLaura
15 days agoLacey
2 months agoCandida
2 days agoHershel
20 days agoDorethea
25 days agoArthur
2 months agoRanee
2 months agoKiera
2 months agoJillian
2 months agoLynna
3 months agoJillian
3 months ago