fatal error C1004: unexpected end of file found
#include<iostream>#include<vector>
#include<algorithm>
#include<numeric>
using namespace std;
void output(int val)
{
cout<<val<<' ';
}
void main()
{
vector<int>g1;
g1.push_back(7);
g1.push_back(3);
g1.push_back(5);
cout<<"g1:";
for_each(g1.begin(),g1.end(),output);
cout<<endl;
vector<int>g2(g1.size());
adjacent_difference(g1.begin(),g1.end(),g2.begin());
cout<<"g2:";
for_each(g2.begin(),g2.end(),output);
cout<<endl;
}