title: error use of enum without previous declaration?
body: <p>I'm learning C++ from a book and the following example doesn't work in codeblocks. My compiler gives an error:</p>
  
  <blockquote>
    <p>use of enum <code>'Days'</code> without previous declaration</p>
  </blockquote>
  
  <p>Can someone enlight me here?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() // main routine
  {
      int a;
      enum Days (zo,ma,di,wo,do,vr,za); // &lt;error here&gt; : use of enum 'Days' without previous declaration
      Days today;
      today = ma;
      if (today == zo || today == za)
          cout &lt;&lt; "weekend \n"
      else
          cout &lt;&lt; "ohno workday \n";
      return 0;
  }
  </code></pre>