Error: does not name a type (using auto)
<p>I am studying auto with the c++ primer 5th edition. They gave me examples such as:</p>

<pre><code>auto item = val1 + val2;
</code></pre>

<p>From what I understand auto tells you what type forms from the expression you make. So I did my own:</p>

<pre><code>int test1 = 69, test2 = 72;
auto test3 = test1 + test2;
</code></pre>

<p>but i got the error: " 'test3' does not name a type"</p>

<p>What does this mean? I though test3 will become the same type as test1,test2 which is int.</p>