C++- Help (error: expected unqualified-id before 'return')
<p>I have throughly looked through all streams containing this question and have found no answer that helps me solve this problem:</p>

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

int main() 
{
    int age; 
    {
        cout &lt;&lt; "What is your age?";
        cin &gt;&gt; age;
    }
    if (age &gt; 10)
    {
        if (age &gt;= 17)
            cout &lt;&lt; "You are legally allowed to drive- woohoo!";
    }
    else
    {
        if (age&lt;=10)
            cout&lt;&lt; "You are a child- silly to even ponder this fact";
    }

    if (age &lt; 0)
    {
        cout &lt;&lt; "Error- liar!";   
    }
}
return 0;
</code></pre>

<p>When trying to run this program, the debugger says that there is an unqualified-id before return- I have tried removing/adding semi-colons and brackets, and even tried to change the way the lines are spaced..</p>

<p>Can someone help?</p>

<p>Thank you very much...</p>