help with newbie c++ code
<p>I am learning C++ and need help with my code. I don't understand how I get compiler errors in my second function. It's almost a mirror of the first, but I don't get any errors from the first.</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

// Function prototypes
int getLargest(int[], int);
int getSmallest(int[],int);

int main()
{
    const int ARRAY_SIZE = 10;
    int array[ARRAY_SIZE];
    int count = 0;

    cout &lt;&lt; "Please enter 10 numbers into the array.\n\n";
    for (count; count &lt; ARRAY_SIZE; count++)
    {
        cout &lt;&lt; "Number " &lt;&lt; (count +1) &lt;&lt; ": " ;
        cin     &gt;&gt; array[count];
    }

    // Call function to calculate largest number. 
    int largest = getLargest(array, ARRAY_SIZE);

    // Display the largest number
    cout &lt;&lt; "The largest number is " &lt;&lt; largest &lt;&lt; endl;

    // Call function to calculate smallest number. 
    int smallest = getSmallest(array, ARRAY_SIZE);

    // Display the smallest number.
    cout &lt;&lt; "The smallest number is " &lt;&lt; smallest &lt;&lt; endl;

    return 0;
}

//**********************************************************************
// Function definition getLargest.
// This function accepts an array argument and returns the largest element.
//**********************************************************************
int getLargest(int arrays[], int size1)
{
    // Find the largest  number in the array. 
    int large = arrays[0];
    for (int count = 1; count &lt; size1; count++)
    {
        if(arrays[count] &gt; large)
            large= arrays[count];
    }
    return large;
}

//**********************************************************************
// Function getSmallest definition. 
//  This function accepts an array argument and returns the smallest element.
//**********************************************************************
int getSmallest(int arrays[], int size2)
{
    // Find the smallest number in the array. 
    int small = arrays[0];
    for (count = 1; count &lt; size2; count++)
    {
        if (arrays[count] &lt; small)
            small = arrays[count];
    }
    return small;
}
</code></pre>

<p>Here are my errors: </p>

<pre><code>777.cpp: In function ‘int getSmallest(int*, int)’:
777.cpp:62: error: overloaded function with no contextual type information
777.cpp:62: error: ‘size2’ cannot appear in a constant-expression
777.cpp:62: error: parse error in template argument list
777.cpp:62: error: could not convert ‘count&lt;&lt;expression error&gt; &gt;’ to ‘bool’
777.cpp:62: error: no post-increment operator for type
777.cpp:64: error: invalid types ‘int*[&lt;unresolved overloaded function type&gt;]’ for array subscript
777.cpp:65: error: invalid types ‘int*[&lt;unresolved overloaded function type&gt;]’ for array subscript
</code></pre>
