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
3 months agoBettina
2 months agoBettina
3 months agoBettina
3 months agoJolanda
4 months agoJerry
2 months agoTrinidad
2 months agoJerry
2 months agoQuentin
2 months agoVanna
3 months agoLeana
3 months agoJerry
3 months agoRene
4 months agoRodrigo
4 months agoKatlyn
4 months agoRodrigo
4 months agoAlva
4 months agoDianne
4 months agoMitsue
3 months agoCelestine
3 months agoKanisha
4 months agoKenny
4 months ago