fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. struct foo{
  6. int a;
  7. double b;
  8. float c;
  9. };
  10.  
  11. enum foo{
  12. Test1,Test2,Test3
  13. };
  14.  
  15. {
  16.  
  17. union foo{
  18. int x;
  19. double y;
  20. float z;
  21. };
  22.  
  23. }
  24.  
  25. return 0;
  26. }
  27.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:11:10: error: ‘foo’ defined as wrong kind of tag
     enum foo{
          ^~~
stdout
Standard output is empty