/in/foo.c:5:2: error: unknown type name 'word'
word* next;
^~~~
/in/foo.c: In function 'main':
/in/foo.c:10:6: error: 'new' undeclared (first use in this function)
a = new char[100000];
^~~
/in/foo.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:10: error: expected ';' before 'char'
a = new char[100000];
^~~~
/in/foo.c:12:2: error: unknown type name 'word'
word* head = NULL, * tail = NULL;
^~~~
/in/foo.c:12:2: note: use 'struct' keyword to refer to the type
/in/foo.c:13:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
gets(a);
^~~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.c:14:8: warning: too many arguments for format [-Wformat-extra-args]
scanf("%c", &find, 2);
^~~~
/in/foo.c:19:3: error: unknown type name 'word'
word* newp = new word;
^~~~
/in/foo.c:19:3: note: use 'struct' keyword to refer to the type
/in/foo.c:19:20: error: expected ',' or ';' before 'word'
word* newp = new word;
^~~~
/in/foo.c:23:8: error: request for member 'next' in something not a structure or union
tail->next = newp;
^~
/in/foo.c:25:7: error: request for member 'letter' in something not a structure or union
newp->letter = a[i];
^~
/in/foo.c:26:7: error: request for member 'next' in something not a structure or union
newp->next = NULL;
^~
/in/foo.c:28:2: error: 'delete' undeclared (first use in this function)
delete[]a;
^~~~~~
/in/foo.c:28:9: error: expected expression before ']' token
delete[]a;
^
/in/foo.c:29:7: error: unknown type name 'word'
for (word* p = head; p != NULL; p = p->next)
^~~~
/in/foo.c:29:7: note: use 'struct' keyword to refer to the type
/in/foo.c:29:39: error: request for member 'next' in something not a structure or union
for (word* p = head; p != NULL; p = p->next)
^~
/in/foo.c:30:17: error: request for member 'letter' in something not a structure or union
printf("%c", p->letter);
^~