fork(2) download
  1. struct Foo
  2. {
  3. int i, j, k;
  4. Foo() = delete;
  5. };
  6.  
  7. int main() {
  8. Foo f{1,2,3};
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:13: error: no matching function for call to ‘Foo::Foo(<brace-enclosed initializer list>)’
  Foo f{1,2,3};
             ^
prog.cpp:8:13: note: candidates are:
prog.cpp:1:8: note: constexpr Foo::Foo(const Foo&)
 struct Foo
        ^
prog.cpp:1:8: note:   candidate expects 1 argument, 3 provided
prog.cpp:1:8: note: constexpr Foo::Foo(Foo&&)
prog.cpp:1:8: note:   candidate expects 1 argument, 3 provided
stdout
Standard output is empty