You have only defined one constructor: exforsys(int x,int y) which takes two arguments.

So you cannot use the syntax "exforsys e1;" to create an object, because this requires the constructor exforsys() -- no arguments -- to be defined.