#include <iostream> using namespace std; class Foo { public: Foo(); }; Foo::Foo(){ Bar b;} class Bar{}; int main() { // your code goes here return 0; }
Standard input is empty
prog.cpp: In constructor ‘Foo::Foo()’:
prog.cpp:9:13: error: ‘Bar’ was not declared in this scope
Foo::Foo(){ Bar b;}
^~~
Standard output is empty