0_0_14676938_25046.cpp:9:2: error: conflicting declaration 'typedef struct Node node'
}node;
^
0_0_14676938_25046.cpp:8:12: note: previous declaration as 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp: In function 'void init()':
0_0_14676938_25046.cpp:15:36: error: invalid application of 'sizeof' to incomplete type 'node'
root=(node *)malloc(sizeof(node));
^
0_0_14676938_25046.cpp:16:9: error: invalid use of incomplete type 'struct node'
root->sum=0;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:19:13: error: invalid use of incomplete type 'struct node'
root->next[i]=NULL;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp: In function 'void inserts(char*)':
0_0_14676938_25046.cpp:31:13: error: invalid use of incomplete type 'struct node'
if(h->next[id]==NULL)
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:33:41: error: invalid application of 'sizeof' to incomplete type 'node'
p=(node *)malloc(sizeof(node));
^
0_0_14676938_25046.cpp:34:14: error: invalid use of incomplete type 'struct node'
p->sum=1;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:36:18: error: invalid use of incomplete type 'struct node'
p->next[j]=NULL;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:37:14: error: invalid use of incomplete type 'struct node'
h->next[id]=p;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:38:16: error: invalid use of incomplete type 'struct node'
h=h->next[id];
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:42:16: error: invalid use of incomplete type 'struct node'
h=h->next[id];
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:43:14: error: invalid use of incomplete type 'struct node'
h->sum++;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp: In function 'int Search(char*)':
0_0_14676938_25046.cpp:55:13: error: invalid use of incomplete type 'struct node'
if(h->next[id]==NULL)
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:58:16: error: invalid use of incomplete type 'struct node'
h=h->next[id];
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
0_0_14676938_25046.cpp:61:17: error: invalid use of incomplete type 'struct node'
return h->sum;
^
0_0_14676938_25046.cpp:8:12: error: forward declaration of 'struct node'
struct node *next[26];
^
|