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