error: 'enumElement' was not declared in this scope
<p>I wrote the following little script:</p>

<pre><code>#include &lt;string&gt;
#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
using namespace std;
int main() {
    enum class Day {sunday, monday, thuesday, wednesday, thursday, friday, saturday};
    Day unusedDay, today = sunday;
}
</code></pre>

<p>But i have a problem. When I debug the programm, the compiler says:</p>

<pre><code>error: 'sunday' was not declared in this scope
</code></pre>

<p>but there is my enum class. Why sunday isn't declared? How can I change that?</p>

<p>Thanks for answears:)</p>