error: ISO C forbids declaration of `test' with no type
<p>I'm learning C++ by myself and I ran into this problem. I wrote several lines of simple code just wanted to test "auto", and it seems that it no longer works. I pasted my code below:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main(int argc, char** argv) {
    auto test=1;
    return 0;
}
</code></pre>

<p>Then the error in the title is reported. I use NetBeans IDE. Any advice would be appreciated. </p>
