Could someone please tell me why my main function is not compiling, and how (if you know how to use g++) would I find the size of objects X and Y? Thanks
Code:int main() { X *px = new X; } class Y : public X { public: void f1() {} virtual void f2(){} int b; }; class X { public: virtual void f1() = 0; virtual ~X(){} int a; static int sa; };