0_0_16784933_4608.c:21:5: error: unknown type name 'node'
node *sons[10];
^
0_0_16784933_4608.c:22:5: error: expected specifier-qualifier-list before 'node'
node()
^
0_0_16784933_4608.c:29:1: error: unknown type name 'node'
node *root;
^
0_0_16784933_4608.c:30:1: error: unknown type name 'node'
node *nownode,*newnode;
^
0_0_16784933_4608.c: In function 'Insert':
0_0_16784933_4608.c:35:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i < lens; i++)
^
0_0_16784933_4608.c:35:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_16784933_4608.c:38:19: error: request for member 'sons' in something not a structure or union
if(nownode->sons[m] != NULL)
^
0_0_16784933_4608.c:40:30: error: request for member 'sons' in something not a structure or union
nownode = nownode->sons[m];
^
0_0_16784933_4608.c:41:20: error: request for member 'num' in something not a structure or union
nownode->num++;
^
0_0_16784933_4608.c:45:23: error: 'new' undeclared (first use in this function)
newnode = new node;
^
0_0_16784933_4608.c:45:23: note: each undeclared identifier is reported only once for each function it appears in
0_0_16784933_4608.c:45:27: error: expected ';' before 'node'
newnode = new node;
^
0_0_16784933_4608.c:46:20: error: request for member 'num' in something not a structure or union
newnode->num++;
^
0_0_16784933_4608.c:47:20: error: request for member 'sons' in something not a structure or union
nownode->sons[m] = newnode;
^
0_0_16784933_4608.c:51:12: error: request for member 'no' in something not a structure or union
nownode->no = num;
^
0_0_16784933_4608.c: In function 'Find':
0_0_16784933_4608.c:57:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < lens;i++)
^
0_0_16784933_4608.c:60:19: error: request for member 'sons' in something not a structure or union
if(nownode->sons[m] == NULL)
^
0_0_16784933_4608.c:62:26: error: request for member 'sons' in something not a structure or union
nownode = nownode->sons[m];
^
0_0_16784933_4608.c:64:15: error: request for member 'no' in something not a structure or union
if(nownode->no != -1)
^
0_0_16784933_4608.c:65:22: error: request for member 'no' in something not a structure or union
++res[nownode->no];
^
0_0_16784933_4608.c: At top level:
0_0_16784933_4608.c:68:10: error: unknown type name 'node'
void del(node*root)
^
0_0_16784933_4608.c: In function 'main':
0_0_16784933_4608.c:100:16: error: 'new' undeclared (first use in this function)
root = new node;
^
0_0_16784933_4608.c:100:20: error: expected ';' before 'node'
root = new node;
^
0_0_16784933_4608.c:103:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < n;i++)
^
0_0_16784933_4608.c:108:17: error: redefinition of 'i'
for(int i = 0;i < m;i++)
^
0_0_16784933_4608.c:103:17: note: previous definition of 'i' was here
for(int i = 0;i < n;i++)
^
0_0_16784933_4608.c:108:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < m;i++)
^
0_0_16784933_4608.c:111:13: error: expected expression before '/' token
//change(a[i]);
^
0_0_16784933_4608.c:114:17: error: redefinition of 'i'
for(int i = 0;i < n;i++)
^
0_0_16784933_4608.c:108:17: note: previous definition of 'i' was here
for(int i = 0;i < m;i++)
^
0_0_16784933_4608.c:114:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0;i < n;i++)
^
|