/in/foo.cc:14:9: error: ISO C++ forbids declaration of 'Output' with no type [-fpermissive]
Output()
^
/in/foo.cc:20:11: error: ISO C++ forbids declaration of 'SetInter' with no type [-fpermissive]
SetInter();
^
/in/foo.cc: In member function 'int Array::Output()':
/in/foo.cc:16:16: error: 'x' was not declared in this scope
for(int i=0;i<x;i++)
^
/in/foo.cc:19:2: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: At global scope:
/in/foo.cc:23:6: error: prototype for 'void Array::SetInter()' does not match any in class 'Array'
void Array::SetInter()
^~~~~
/in/foo.cc:20:2: error: candidate is: int Array::SetInter()
SetInter();
^~~~~~~~