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