title: expected function body after function declarator cs50
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cs50.h&gt;
  
  int main(void)
  
  if (x &gt; y)
  {
      printf("X is greater than Y\n");
  }
  else
  {
      printf("X is less than Y\n");
  } 
  </code></pre>
  
  <p>Whenever I try to compile this code, it's giving me the error "expected function body after function declarator". please help as this is my first time coding. Error listed below.</p>
  
  <pre><code>conditions.c:9:1: error: expected function body after function declarator
  if (x &gt; y)
  ^
  1 error generated.
  &lt;builtin&gt;: recipe for target 'conditions' failed
  make: *** [conditions] Error 1 
  </code></pre>