title: Just Want to know what this error message really means!
body: <blockquote>
    <p>expected unqualified-id before '{'</p>
  </blockquote>
  
  <p>Where is this error on my code? Thanks everyone!</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using std::cout;
  using std::endl;
  
  //function prototypes
  void findsmallest (int[], int &amp;); 
  void findsmallest  (int scores [], int &amp; min);
  
  int main()
  {
      //declare variables
      int smallest = 0;
      int scores[20] = { 90, 54, 23,  75, 67,
                         89, 99, 100, 34, 99, 
                         97, 76, 73,  72, 56, 
                         73, 72, 65,  86, 90 };
      findsmallest(scores, smallest);                   
      return 0;
  
      //call function find smallest
      findsmallest (scores, smallest);                   
  
      cout &lt;&lt; "Minimum value in the array is " &lt;&lt; smallest &lt;&lt; endl;
  
      system ("pause");
      return 0;
  }
  
  //function definition
  
  void findsmallest(int scores [], int &amp; min);
  {
  
      min = scores[0];
      int i;
  
      for(i = 0; i &lt; 20; i++)
      {
          if(scores[i] &lt; min)
          {
              min = scores[i];
          }
      }
  }
  
  
  //end display findsmallest
  system ("pause");
  return 0;
  </code></pre>