0_0_13752004_3539.c:11:5: error: expected specifier-qualifier-list before 'node'
node()
^
0_0_13752004_3539.c: In function 'insert':
0_0_13752004_3539.c:33:40: error: 'new' undeclared (first use in this function)
cur->child[str[i]-'a']=new NODE;
^
0_0_13752004_3539.c:33:40: note: each undeclared identifier is reported only once for each function it appears in
0_0_13752004_3539.c:33:44: error: expected ';' before 'NODE'
cur->child[str[i]-'a']=new NODE;
^
0_0_13752004_3539.c: At top level:
0_0_13752004_3539.c:41:35: error: expected ';', ',' or ')' before '&' token
void dfs(const NODE * root,char * &str,int &max)
^
0_0_13752004_3539.c: In function 'del':
0_0_13752004_3539.c:62:5: error: unknown type name 'delete'
delete root;
^
0_0_13752004_3539.c:62:12: error: 'root' redeclared as different kind of symbol
delete root;
^
0_0_13752004_3539.c:56:16: note: previous definition of 'root' was here
void del(NODE *root)
^
0_0_13752004_3539.c: In function 'main':
0_0_13752004_3539.c:73:20: error: 'new' undeclared (first use in this function)
NODE *root=new NODE;
^
0_0_13752004_3539.c:73:24: error: expected ',' or ';' before 'NODE'
NODE *root=new NODE;
^
|