prog.cpp:9:12: error: expected ‘:’ before ‘Addition’
public Addition(int a, int b)
^~~~~~~~
prog.cpp: In static member function ‘static int Addition::AddtwoValues()’:
prog.cpp:16:19: error: invalid use of member ‘Addition::x’ in static member function
return (x + y);
^
prog.cpp:6:9: note: declared here
int x;
^
prog.cpp:16:23: error: invalid use of member ‘Addition::y’ in static member function
return (x + y);
^
prog.cpp:7:9: note: declared here
int y;
^