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[]={6,10,8,7,9}; vector sort(t1, t1+5); sort(t2, t2+5); merge(t1,t1+5,t2,t2+5,v1.begin()); for_each(v1.begin(), v1.end(), Out return 0; } Program outputs:
Carman
3 months agoSharmaine
3 months agoDominque
3 months agoElbert
4 months agoCarin
4 months agoDell
4 months agoJennifer
4 months agoShawnda
4 months agoPaulina
5 months agoDusti
5 months agoMy
5 months agoHester
5 months agoWinfred
5 months agoBambi
5 months agoLeonor
5 months agoAlbina
9 months agoBeth
9 months agoOcie
9 months agoDylan
8 months agoNickolas
8 months agoMicaela
9 months agoLashanda
9 months agoAndra
9 months agoIndia
8 months agoIndia
8 months agoIndia
8 months agoGabriele
10 months agoRodrigo
9 months agoAlva
9 months agoCandra
9 months agoTanja
10 months agoDottie
9 months agoDottie
9 months agoGalen
11 months agoQuentin
11 months agoValene
11 months ago