DEV C ++ Error: expected declaration before '}' token
<p>What does this mean?
My program goes like this: (NOTE: The line that has the error was the line coming before case 2.)</p>

<pre><code>case 1:
{
cout&lt;&lt; "C * H * E * M * I * S * T * R * Y \n\n";
cout&lt;&lt; "1) What is the valence electron configuration of Selenium (Se)?\n\n";
cout&lt;&lt; "\na) 1s2 2s2 2p6 3s2\n\n";
cout&lt;&lt; "\nb) 1s2 2s2 2p2\n\n";
cout&lt;&lt; "\nc)4s2 4p4\n\n";
cout&lt;&lt; "\nd) 1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p5\n\n";
cout&lt;&lt; "Enter your answer:\n";
cin&gt;&gt; answer;

if (answer == 'c')
{
    cout&lt;&lt;"Your answer is correct. Please press the enter key to proceed to the next question.\n\n";
}
else
    cout&lt;&lt; "The correct answer is C. Please press the enter key to proceed to the next question.\n\n";

getch ();
}

getch ();
cout&lt;&lt; "2) Which element yields the biggest atomic radius?\n\n";
cout&lt;&lt; "\na) Ca\n\n";
cout&lt;&lt; "\nb) Xe\n\n";
cout&lt;&lt; "\nc) B\n\n";
cout&lt;&lt; "\nd) Cs\n\n";
cout&lt;&lt; "Enter your answer:\n";
cin&gt;&gt; answer;
if (answer == 'd')
{
    cout&lt;&lt; "Your answer is correct. Please press the enter key to proceed to the next question.\n\n";
}
else
    cout&lt;&lt; "The correct answer is D. Please press the enter key to proceed to the next question.\n\n";

getch ();
}

cout&lt;&lt; "3) Name the ionic compound K2 Cr2 O7\n\n";
cout&lt;&lt; "\na) potassium chloride\n\n";
cout&lt;&lt; "\nb) potassium carbonate\n\n";
cout&lt;&lt; "\nc) potassium chromite\n\n";
cout&lt;&lt; "\nd) potassium chromate\n\n";
cout&lt;&lt; "Enter your answer:\n";
cin&gt;&gt; answer;
if (answer == 'd')
{
    cout&lt;&lt; "Your answer is correct. Please press the enter key to proceed to the next question.\n\n";
}
else
    cout&lt;&lt; "The correct answer is D. Please press the enter key to proceed to the next question.\n\n";


getch ();
}
}
case 2:
{
cout&lt;&lt; "G * E * O * M * E * T * R * Y \n\n";
</code></pre>

<p>The error, as noted in the title is <code>expected declaration before '}' token</code> at the line noted in my opening paragraph.</p>
