Write your question here.
The program complies and executes. However, the IDE says for line 31 "error: braces cannot be omitted for this subject initializer" See boldface 1L in line 31.
Brace elision is probably a good keyword to search with. C++11 and C++14 differ a bit. array<long, N> fibonacci {{ 1L, 1L }};
In principle you either have a compilation error or compilation succeeds. It sounds like the IDE and the compiler support different versions of C++. (I prefer an editor that simply shows the errors that the compiler spits out; no redundancy that could conflict.)
Thank you all for your response. I feel honored to receive the attention of highly experienced and knowledgeable C++ programmers.
I first used the statement std::array<long, N> fibonacci = { 1L, 1L };, and the error went away. The program compiled and executed.
I then did a search for Brace elision and came up with this statement: std::array<long, N> Fibonacci {{ 1L, 1L }};, and the error went away. Of course, the program complied and executed.
I am using Microsoft Visual Studio Express 2013 for Windows Desktop.
Thank you all again for helping me understand the intricacies of C++.