Need to find 3 small errors - memory bugs : <p>As part of a college assignment, we were tasked with analyzing some code in an effort to identify memory issues. There's 3 we are to find. As I am quite new to the concept of pointers, I am drawing a blank. I do know main() should be returning an int and that the use of the "unsigned" means non-negative integers in this case.</p>

<p><a href="https://imgur.com/hxqdNdt" rel="nofollow noreferrer">Compiler Errors</a></p>

<p>Tried searching for similar problems.</p>

<pre><code>void main()
{
    double* d = new double;
    for (unsigned int i = 0; i &lt; 3; i++) {
        d[i] = 1.5 + i;
    }
    for (unsigned int i = 2; i &gt;= 0; i--) {
        cout &lt;&lt; d[i] &lt;&lt; endl;
    }
}

The program results in an infinite loop of memory addresses.
</code></pre>
