fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. volatile uint16_t *testarray;
  5. testarray = (uint16_t *) malloc (sizeof (uint16_t) * 15);
  6. return 0;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:4:11: error: unknown type name 'uint16_t'
  volatile uint16_t *testarray;
           ^
prog.c:5:18: error: 'uint16_t' undeclared (first use in this function)
     testarray = (uint16_t *) malloc (sizeof (uint16_t) * 15);
                  ^
prog.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
prog.c:5:28: error: expected expression before ')' token
     testarray = (uint16_t *) malloc (sizeof (uint16_t) * 15);
                            ^
prog.c:4:21: warning: variable 'testarray' set but not used [-Wunused-but-set-variable]
  volatile uint16_t *testarray;
                     ^
stdout
Standard output is empty