prog.cpp:6:24: error: ‘p1’ is not a type
prog.cpp:6:27: error: ‘p2’ is not a type
prog.cpp:11:16: error: ‘p1’ is not a type
prog.cpp:11:19: error: ‘p2’ is not a type
prog.cpp: In member function ‘virtual double B::fun(int, int)’:
prog.cpp:12:6: error: ‘cout’ was not declared in this scope
prog.cpp:13:2: warning: no return statement in function returning non-void [-Wreturn-type]
prog.cpp: At global scope:
prog.cpp:18:16: error: ‘p1’ is not a type
prog.cpp:18:19: error: ‘p2’ is not a type
prog.cpp: In member function ‘virtual double C::fun(int, int)’:
prog.cpp:19:3: error: ‘cout’ was not declared in this scope
prog.cpp:20:2: warning: no return statement in function returning non-void [-Wreturn-type]
prog.cpp: In function ‘void proc(A**)’:
prog.cpp:24:12: error: no matching function for call to ‘A::fun()’
prog.cpp:24:12: note: candidate is:
prog.cpp:6:20: note: virtual double A::fun(int, int)
prog.cpp:6:20: note: candidate expects 2 arguments, 0 provided