fork download
  1. struct list *root = NULL;
  2. struct list **tmp = &root;
  3. for(int i = 1; i < 10; i++){
  4. *tmp = insert(*tmp, i*16 % 9);
  5. tmp = &(*tmp)->next;
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:21: error: 'NULL' undeclared here (not in a function)
 struct list *root = NULL;
                     ^
prog.c:3:2: error: expected identifier or '(' before 'for'
  for(int i = 1; i < 10; i++){
  ^
prog.c:3:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
  for(int i = 1; i < 10; i++){
                   ^
prog.c:3:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
  for(int i = 1; i < 10; i++){
                          ^
stdout
Standard output is empty