Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$ prog.cc:8:11: error: '::main' must return 'int'
void main(){
^
prog.cc: In function 'int main()':
prog.cc:10:23: error: 'static int MyClass::MyMethod()' is private within this context
a = MyClass::MyMethod();
^
prog.cc:2:12: note: declared private here
static int MyMethod(){
^~~~~~~~
Exit Code:
1