fork download
  1. typedef struct MenuItem MenuItem;
  2. typedef void MenuItemHandler(const MenuItem *menuItem);
  3.  
  4. struct MenuItem
  5. {
  6. const char *title;
  7. MenuItemHandler *handler;
  8. const MenuItem *subMenu;
  9. };
  10.  
  11. const MenuItem dzhigurdaMenu[] =
  12. {
  13. { .title = "Джигурда" },
  14. { 0 }
  15. };
  16.  
  17. const MenuItem pizdaMenu[] =
  18. {
  19. { .title = "Пизда", .subMenu = dzhigurdaMenu },
  20. { 0 }
  21. };
  22.  
  23. const MenuItem rootMenu[] =
  24. {
  25. { .title = "Хуй", .subMenu = pizdaMenu },
  26. { .title = "Хуй 2" },
  27. { .title = "Хуй 3" },
  28. { 0 }
  29. };
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i586-linux-gnu/5/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty