0_0_25541508_2256.c:6:5: error: unknown type name 'Node'
Node *next[26];
^
0_0_25541508_2256.c:8:5: error: expected specifier-qualifier-list before 'Node'
Node()
^
0_0_25541508_2256.c:18:1: error: unknown type name 'Node'
Node root;
^
0_0_25541508_2256.c: In function 'insert':
0_0_25541508_2256.c:21:5: error: unknown type name 'Node'
Node *p = &root;
^
0_0_25541508_2256.c:25:13: error: request for member 'next' in something not a structure or union
if(p->next[a[i]-'a']==NULL)
^
0_0_25541508_2256.c:26:14: error: request for member 'next' in something not a structure or union
p->next[a[i]-'a'] = new Node;
^
0_0_25541508_2256.c:26:33: error: 'new' undeclared (first use in this function)
p->next[a[i]-'a'] = new Node;
^
0_0_25541508_2256.c:26:33: note: each undeclared identifier is reported only once for each function it appears in
0_0_25541508_2256.c:26:37: error: expected ';' before 'Node'
p->next[a[i]-'a'] = new Node;
^
0_0_25541508_2256.c:27:14: error: request for member 'next' in something not a structure or union
p = p->next[a[i]-'a'];
^
0_0_25541508_2256.c:28:10: error: request for member 'num' in something not a structure or union
p->num++;
^
0_0_25541508_2256.c: In function 'find':
0_0_25541508_2256.c:33:5: error: unknown type name 'Node'
Node *p = &root;
^
0_0_25541508_2256.c:37:13: error: request for member 'next' in something not a structure or union
if(p->next[a[i]-'a']==NULL)
^
0_0_25541508_2256.c:39:14: error: request for member 'next' in something not a structure or union
p = p->next[a[i]-'a'];
^
0_0_25541508_2256.c:41:13: error: request for member 'num' in something not a structure or union
return p->num;
^
|