fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A
  5. {
  6. };
  7.  
  8. struct B : A
  9. {
  10. };
  11.  
  12. int main() {
  13. // your code goes here
  14.  
  15. B* b = static_cast<B*>(nullptr);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Standard output is empty