So I've finally learned enough to do the first code completion challenge, but when I try to compile and run it, I get a couple errors that I don't understand:


Code:
#include <iostream>
      using namespace std;
      int main()
{
  int array[8];
  for(int x=0; x<8; x++)
  cin>>array[x];
  for(x=0; x<8; x++)
  cout<<array[x];
  return 0;
}
Line 8 name lookup of 'x' changed for new ISO 'for' scoping
Line 6 using obsolete binding at 'x'

Can somebody help me out here? Thanks -

-JM