prog.c: In function ‘main’:
prog.c:5:2: error: expected ‘,’ or ‘;’ before ‘int’
int *p;
^~~
prog.c:6:2: error: ‘p’ undeclared (first use in this function)
p=list;
^
prog.c:6:2: note: each undeclared identifier is reported only once for each function it appears in