fork download
  1. #include <stdio.h>
  2.  
  3. struct Suck {
  4. enum {Suck1 = 0, Suck2 = 1};
  5. };
  6.  
  7. int s = Suck::Suck1;
  8.  
  9. int main()
  10. {
  11. printf("%d\n", s);
  12. return 0;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4: warning: declaration does not declare anything
prog.c:7: error: ‘Suck’ undeclared here (not in a function)
prog.c:7: error: expected ‘,’ or ‘;’ before ‘:’ token
stdout
Standard output is empty