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:
Albina
1 months agoBeth
1 months agoOcie
1 months agoDylan
9 days agoNickolas
16 days agoMicaela
24 days agoLashanda
27 days agoAndra
2 months agoIndia
1 days agoIndia
3 days agoIndia
11 days agoGabriele
2 months agoRodrigo
1 months agoAlva
1 months agoCandra
2 months agoTanja
2 months agoDottie
20 days agoDottie
1 months agoGalen
3 months agoQuentin
3 months agoValene
3 months ago