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:
Rodrigo
4 days agoAlva
6 days agoDianne
7 days ago