fork download
  1. struct mt_blk {
  2. int closed;
  3. thread wQueue;
  4. };
  5.  
  6. typedef struct mt_blk mutex;
  7.  
  8. #define M_INI {0,0}
  9. void close(mutex *m);
  10.  
  11. int main(void)
  12. {
  13. printf("%d", mutex.closed");
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3: error: expected specifier-qualifier-list before ‘thread’
prog.c: In function ‘main’:
prog.c:13: warning: implicit declaration of function ‘printf’
prog.c:13: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:13: error: expected expression before ‘mutex’
prog.c:13:30: warning: missing terminating " character
prog.c:13: error: missing terminating " character
prog.c:15: error: expected ‘;’ before ‘}’ token
stdout
Standard output is empty