prog.cpp: In function 'int main()':
prog.cpp:20:4: error: cannot declare variable 'b' to be of abstract type 'B'
B b;
^
prog.cpp:10:7: note: because the following virtual functions are pure within 'B':
class B : public A
^
prog.cpp:8:15: note: virtual void A::foo(int, int)
virtual void foo(int a, int b) = 0;
^
prog.cpp:21:2: error: 'b' is not a class, namespace, or enumeration
b::A::foo();
^