What happens when you attempt to compile and run the following code?
#include
#include
#include
#include
using namespace std;
template
ostream & out;
Out(ostream & o): out(o){}
void operator() (const T & val ) { out< int main() { int t1[]={1,2,3,4,5,6,7,8,9,10}; int t2[]={1,2,3,4,5,6,7,8,9,10}; vector vector vector transform(v1.begin(), v1.end(), v2.rbegin(), v3.begin(), minus for_each(v3.rbegin(), v3.rend(), Out return 0; } Program outputs:
Reita
2 months agoBettina
23 days agoBettina
1 months agoBettina
2 months agoJolanda
2 months agoJerry
26 days agoTrinidad
27 days agoJerry
27 days agoQuentin
28 days agoVanna
1 months agoLeana
1 months agoJerry
2 months agoRene
2 months agoRodrigo
2 months agoKatlyn
3 months agoRodrigo
3 months agoAlva
3 months agoDianne
3 months agoMitsue
2 months agoCelestine
2 months agoKanisha
2 months agoKenny
2 months ago