I don't know why Visual Studio Code and g++ expect a semicolon after a curly braces initialization of a variable. The program is below.
#include<iostream>
int main()
{
    int i{0}; // Semi colon expected here??
    return 0;
}
I don't know why Visual Studio Code and g++ expect a semicolon after a curly braces initialization of a variable. The program is below.
#include<iostream>
int main()
{
    int i{0}; // Semi colon expected here??
    return 0;
}