fork download
  1. struct Base
  2. {
  3. Base(int x, int y=0, int z=0)
  4. {
  5.  
  6. }
  7. };
  8.  
  9. struct Derived : public Base
  10. {
  11. using Base::Base;
  12. };
  13.  
  14. int main() {
  15. Base B(1,2);
  16. Derived D(2,2);
  17. return 0;
  18. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty