C++ array out of bound | Hacker News Reader