0_0_37582774_30776.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_37582774_30776.cpp: In function 'void createTrie(char*)':
0_0_37582774_30776.cpp:13:25: error: 'strlen' was not declared in this scope
int len = strlen(str);
^
0_0_37582774_30776.cpp:15:18: error: 'inext' was not declared in this scope
for(int i=0; inext[id] == NULL)
^
0_0_37582774_30776.cpp:15:24: error: 'id' was not declared in this scope
for(int i=0; inext[id] == NULL)
^
0_0_37582774_30776.cpp:15:31: error: 'NULL' was not declared in this scope
for(int i=0; inext[id] == NULL)
^
0_0_37582774_30776.cpp:15:35: error: expected ';' before ')' token
for(int i=0; inext[id] == NULL)
^
0_0_37582774_30776.cpp:17:44: error: 'malloc' was not declared in this scope
q = (Trie *)malloc(sizeof(Trie));
^
0_0_37582774_30776.cpp:24:9: error: 'else' without a previous 'if'
else
^
0_0_37582774_30776.cpp:26:21: error: 'id' was not declared in this scope
p->next[id]->v++;
^
0_0_37582774_30776.cpp: At global scope:
0_0_37582774_30776.cpp:30:5: error: 'p' does not name a type
p->v = -1;
^
0_0_37582774_30776.cpp:31:1: error: expected declaration before '}' token
}
^
|