fork download
  1. #include <iostream>
  2.  
  3.  
  4. struct C {int i;};
  5.  
  6. void foo(C c={0})
  7. {
  8.  
  9. }
  10.  
  11. int main()
  12. {
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6:14: error: expected primary-expression before '{' token
prog.cpp:6:14: error: expected ')' before '{' token
prog.cpp: In function 'void foo(C)':
prog.cpp:6:16: error: expected ';' before '}' token
prog.cpp: At global scope:
prog.cpp:6:17: error: expected unqualified-id before ')' token
stdout
Standard output is empty