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