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 t[]={3,2,4,1,5,6,10,8,7,9}; vector for_each(v1.begin(), v1.end(), bind1st(plus for_each(v1.rbegin(), v1.rend(), Out return 0; } Program outputs:
Avery
1 months agoRikki
1 months agoDaren
5 days agoLarae
13 days agoTamekia
14 days agoMozell
2 months agoOcie
9 days agoOcie
14 days agoRebecka
2 months agoTrina
4 days agoJose
1 months agoDulce
2 months agoAnnmarie
1 months agoLura
1 months agoMarti
2 months agoAshlyn
2 months agoFranklyn
3 months ago