0_0_29470772_1945.cpp: In function 'void add(std::string)':
0_0_29470772_1945.cpp:13:24: error: invalid types 'int[int]' for array subscript
if(trie[root][t]==0) trie[root][t]=++cnt;
^
0_0_29470772_1945.cpp:13:42: error: invalid types 'int[int]' for array subscript
if(trie[root][t]==0) trie[root][t]=++cnt;
^
0_0_29470772_1945.cpp:15:26: error: invalid types 'int[int]' for array subscript
root=trie[root][t];
^
0_0_29470772_1945.cpp:16:19: error: lvalue required as increment operand
tot[root]++;
^
0_0_29470772_1945.cpp: In function 'int findd(std::string)':
0_0_29470772_1945.cpp:23:38: error: invalid types 'int[int]' for array subscript
if(i!=len-1)root=trie[root][t];
^
0_0_29470772_1945.cpp:24:29: error: invalid conversion from 'int*' to 'int' [-fpermissive]
else return tot[root];
^
|