fork download
  1. typedef void Data();
  2.  
  3. Data f;
  4.  
  5. Data f
  6. {
  7.  
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:6: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
prog.cpp:8:1: error: function ‘void f()’ is initialized like a variable
prog.cpp:8:1: error: expected ‘,’ or ‘;’ at end of input
stdout
Standard output is empty