title: i cannot compile my code because of this error message: mario.c:5:1: error: expected identifier or '(' { ^
body: <p>The top curly brace under int main(void) is what keeps getting flagged.  The curly-brace cannot be the real issue because I know the entire code needs to be in between the curly braces, so it must be something else.  I have tried deleting and replacing the braces, I have checked the other code to make sure all the loops have braces as needed... I don't get it.  I have gone out and back int the program a few times over several days.<br />
  Here is the part of my code near the error message:</p>
  <pre><code># include &lt;cs50.h&gt;
  
  int main(void);
  {
      int h;
  // prompt user until user enters an integer from 1 to 8
      do
      {
          h = get_int(&quot;hight: \n&quot;);
      }
      while (h &lt; 1 || h &gt; 8);
  </code></pre>