Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$ prog.cc:11:23: error: 'x' is a private member of 'base'
void setx(int i) {x=i;}
^
prog.cc:4:17: note: implicitly declared private here
static int x;
^
prog.cc:12:23: error: 'x' is a private member of 'base'
int getx(){return x;}
^
prog.cc:4:17: note: implicitly declared private here
static int x;
^
2 errors generated.
Exit Code:
1