fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A {
  5. public:
  6. int a;
  7. };
  8. struct B : A {};
  9.  
  10. int main() {
  11. B item;
  12. item.a = 5;
  13. return 0;
  14. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty