fork download
  1. struct foo{
  2. foo() {}
  3. foo(int i){}
  4. };
  5.  
  6. struct bar{
  7. foo obj;
  8. foo obj2(10);
  9. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8: error: expected identifier before numeric constant
prog.cpp:8: error: expected ‘,’ or ‘...’ before numeric constant
stdout
Standard output is empty