Why does this C++ program produce so many errors? | Hacker News Reader