#include <iostream> using namespace std; class A { public: virtual void f(); }; virtual void A::f() {} int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp:9:19: error: ‘virtual’ outside class declaration virtual void A::f() {} ^
Standard output is empty