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
11 days agoBeth
12 days agoOcie
13 days agoAndra
19 days agoGabriele
1 months agoRodrigo
15 days agoAlva
16 days agoCandra
19 days agoTanja
1 months agoDottie
16 days agoGalen
2 months agoQuentin
2 months agoValene
2 months ago