0_0_38288577_11380.cpp:36:5: error: 'unordered_map' does not name a type
unordered_map<char, int> next[SZ];
^
0_0_38288577_11380.cpp: In member function 'int SAM<SZ>::new_node()':
0_0_38288577_11380.cpp:45:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[nd].clear(), link[nd] = -1, len[nd] = 0;
^
0_0_38288577_11380.cpp: In member function 'void SAM<SZ>::insert(char)':
0_0_38288577_11380.cpp:51:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
while(p!=-1&&!next[p].count(x))
^
0_0_38288577_11380.cpp:52:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[p][x] = cur, p = link[p];
^
0_0_38288577_11380.cpp:57:23: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
int q = next[p][x];
^
0_0_38288577_11380.cpp:63:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[nq] = next[q];
^
0_0_38288577_11380.cpp:63:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[nq] = next[q];
^
0_0_38288577_11380.cpp:65:27: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
while(p>=0&&next[p][x]==q)
^
0_0_38288577_11380.cpp:66:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[p][x] = nq, p = link[p];
^
|