Array initialization needs curly braces c++