i keep getting an expected ; error and i'm not sure as to why : <p>i finish writing my code and i am unable to figure out why i am getting an expected ; error </p>

<p>i tried adding the ; where it expects me too but it kicks back other errors instead</p>

<p>here is my code </p>

<pre><code>int main() {
    int* expandArray(int *arr, int SIZE) { //this is the error line 
    //dynamically allocate an array twice the size
    int *expPtr = new int[2 * SIZE];

    //initialize elements of new array
    for (int i = 0; i &lt; 2 * SIZE; i++) {
        //first add elements of old array
        if (i &lt; SIZE) {
            *(expPtr + i) = *(arr + i);
        }
        //all next elements should be 0
        else {
            *(expPtr + i) = 0;
        }
    }

    return expPtr;
}
</code></pre>

<p>}</p>
