Reputation: 49
I compiled this code using g++ and got an error:
#include<iostream>
using namespace std;
int main()
{
int j{ 0 };
cout << "j = " << j << endl;
return 0;
}
This is the error:
error: expected ';' at end of declaration
int j{ 0 };
^
;
1 error generated.
Upvotes: 0
Views: 75