0

for this code:

for(auto x=v.begin(); x!=v.end(); x++)
        cout<<*x<<"  ";

I get the following error:

error: 'x' does not name a type
  for(auto x=v.begin(); x!=v.end(); x++)
Alan Birtles
  • 32,622
  • 4
  • 31
  • 60

0 Answers0