title: Why do I get "error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’" ?
body: <blockquote>
    <p>processpairs2.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘int’</p>
  </blockquote>
  
  <p>Is the error I get everytime I compile my file, the error references me to line 7, which is where I declare the <code>main()</code> function.</p>
  
  <p>my main's function is declared as </p>
  
  <pre><code>int main(int argc, char *argv[])
  </code></pre>
  
  <p>does anyone know what's causing this?</p>
  
  <p>any help is greatly appreciated.</p>
  
  <p>line 1-6 is</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #define ROWS 4
  #define COLS 10
  void checkhighestpair();
  int *ptotal, *pval1, *pval2
  </code></pre>