Why does this compile on Ideone?
<p>Ok so I was messing around on <a href="http://ideone.com">Ideone</a> and accidentally submitted this piece of code, however to my surprise it actually compiled and ran outputting a value of 0, <a href="http://ideone.com/Lkbjo">here</a>.</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

const int five(  )
{
        const int i = 5;
}

int main() {
        cout &lt;&lt; five(  ) &lt;&lt; endl;
        return 0;
}
</code></pre>

<p>I then tried this in Visual Studio, and on <a href="http://codepad.org">Codepad</a> however both failed to compile because <code>five()</code> does not return a value, as one would expect. My question, is of course, why does this compile fine on <a href="http://ideone.com">Ideone</a> even though the code, to my understanding is wrong and shouldn't compile.</p>
