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++){
^