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:
Krystal
6 months agoMelina
6 months agoTimothy
7 months agoDierdre
7 months agoJani
7 months agoNaomi
7 months agoArlette
7 months agoCarlee
8 months agoKanisha
8 months agoRefugia
8 months agoLelia
8 months agoGail
8 months agoRosendo
8 months agoDevora
8 months agoJerry
8 months agoKimberlie
8 months agoMargarett
8 months agoBerry
1 year agoRyann
1 year agoElvera
1 year agoLavonna
11 months agoElmira
12 months agoJaleesa
12 months agoZack
12 months agoKimberely
1 year agoEleonora
12 months agoLeota
12 months agoLaura
1 year agoLacey
1 year agoCandida
12 months agoHershel
1 year agoDorethea
1 year agoArthur
1 year agoRanee
1 year agoKiera
1 year agoJillian
1 year agoLynna
1 year agoJillian
1 year ago