VERY LATE ADDITION here, but in Virtual Studio code, check your MSFT C/C++ extension settings. I had the same issue which got resolved when changing my C_Cpp > Default : Compiler args. It was originally on the C++03 version, change it to a version that has the std::array