fork download
  1. #include <cmath>
  2.  
  3. struct y1
  4. {
  5. };
  6.  
  7. int main()
  8. {
  9. sizeof(y1);
  10. }
  11.  
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:14: error: ISO C++ forbids applying ‘sizeof’ to an expression of function type [-fpermissive]
prog.cpp:9:15: warning: statement has no effect [-Wunused-value]
stdout
Standard output is empty