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
  • 27,579
  • 4
  • 25
  • 50

0 Answers0