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< struct Add { int operator()(int & a, int & b) { return a+b; } }; int main() { int t[]={1,2,3,4,5,6,7,8,9,10}; vector vector transform(v1.begin(), v1.end(), v2.begin(), bind1st(1,Add())); for_each(v2.rbegin(), v2.rend(), Out return 0; } Program outputs:
Jamal
16 days agoStevie
20 days agoFletcher
1 days agoWade
3 days agoKanisha
26 days agoAdolph
7 days agoMaxima
1 months agoJacquline
4 days agoTamesha
5 days agoZona
6 days agoGoldie
7 days agoQuentin
30 days agoNydia
2 months agoCecil
1 months agoCecil
1 months agoTina
2 months agoCatalina
2 months ago