title: Syntax error in C
body: <pre><code> 5 enum state {ST_BEFORE_KEY, ST_IN_KEY, ST_BEFORE_VALUE, ST_TERM, ST_ERR};
    6 
    7 typedef struct {
    8   state st;
        ...
  </code></pre>
  
  <p>The above code reports :</p>
  
  <pre><code>error: expected specifier-qualifier-list before ‘state’
  </code></pre>
  
  <p>What's wrong here in using enum type?</p>