fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. class test
  5. {
  6. public:
  7. test(const std::string& s):str(s){};
  8. private:
  9. std::string str;
  10. };
  11.  
  12. class test1
  13. {
  14. public:
  15. test1() : tst_("Hi") {}
  16. test tst_;
  17. };
  18.  
  19. int main()
  20. {
  21. return 1;
  22. }
Runtime error #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout
Standard output is empty