Author
anonymous
over 8 years ago
Language
Compiler
Options
Author
anonymous
over 8 years ago
$ prog.cc:12:24: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
Something something();
^~
prog.cc:12:24: note: replace parentheses with an initializer to declare a variable
Something something();
^~
{}
prog.cc:13:13: error: base of member reference is a function; perhaps you meant to call it with no arguments?
cout << something.a << endl;
^~~~~~~~~
()
1 warning and 1 error generated.
Exit Code:
1