fork download
  1. #include <iostream>
  2. using namespace std;
  3. struct A
  4. {
  5. A() { };
  6. void foo();
  7. };
  8.  
  9. struct B : public A
  10. {
  11. B() { };
  12. };
  13.  
  14. void A::foo()
  15. {
  16. B bar;
  17.  
  18. //more code
  19. }
  20. int main() {
  21. // your code goes here
  22. return 0;
  23. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty