prog.c:3:16: error: unknown type name ‘list’
{list *next;
^~~~
prog.c:5:10: error: unknown type name ‘list’
list *p;
^~~~
prog.c:5:10: note: use ‘struct’ keyword to refer to the type
prog.c: In function ‘main’:
prog.c:9:4: error: expected identifier or ‘(’ before ‘=’ token
ph = new list; //Создание заглавного звена, ph получил зна-
^
prog.c:11:4: error: expected identifier or ‘(’ before ‘->’ token
ph->next = NULL; //заглавного звена, его полю next присвоено
^~
prog.c:14:6: error: expected expression before ‘ph’
p = ph; //текущему указателю p присвоена ссылка на
^~
prog.c:16:31: error: stray ‘\342’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:32: error: stray ‘\200’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:33: error: stray ‘\230’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:34: error: stray ‘\’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:36: error: stray ‘\342’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:37: error: stray ‘\200’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:38: error: stray ‘\231’ in program
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:35: error: ‘n’ undeclared (first use in this function)
while ((ch = getchar ( )) != ‘\n’)
^
prog.c:16:35: note: each undeclared identifier is reported only once for each function it appears in
prog.c:17:5: error: request for member ‘next’ in something not a structure or union
{p->next = new list; //Создание очередного звена, поле next те-
^~
prog.c:17:14: error: ‘new’ undeclared (first use in this function)
{p->next = new list; //Создание очередного звена, поле next те-
^~~
prog.c:17:18: error: expected ‘;’ before ‘list’
{p->next = new list; //Создание очередного звена, поле next те-
^~~~
prog.c:20:10: error: request for member ‘next’ in something not a structure or union
p = p->next; //текущему указателю p присвоена ссылка
^~
prog.c:22:6: error: request for member ‘elem’ in something not a structure or union
p->elem = ch;} //информационное поле elem текущего звена
^~
prog.c:24:3: error: request for member ‘next’ in something not a structure or union
p->next = NULL; //Ccылочному полю на следующий элемент
^~