#include <iostream>
using namespace std;
class A {
public:
int x;
A() {
x=1;
cout << x <<endl;
}
};
int main()
{
A b();
cout << b.x << endl;
return 0;
}
Running this results in compilation error: Error: request for member 'x' in 'b', which is of non-class type 'A()' "cout<< b.x <