title: Confusion with C2061 error
body: <p>I'm confused as to what the syntax error is in this piece of code. Although I saw similar questions on the forum, all were related to header or preprocessing problems. If that is indeed the problem I would appreciate it if someone could point it out to me.</p>
  
  <p>Specifically, the compiler says the error is in line 12, identifier 'i'</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;stdlib.h&gt;
  #include &lt;iostream&gt;
  #include &lt;Windows.h&gt;
  using namespace std;
  
  int main()
  {
      system("cls");
      int i = 0;
      while i &lt; 5
          cout &lt;&lt; "1"; Sleep(200);
          cout &lt;&lt; "2"; Sleep(200);
          cout &lt;&lt; "3"; Sleep(200);
          cout &lt;&lt; "4"; Sleep(200);
          i = i + 1;
  }
  </code></pre>