0_0_38185814_24641.cpp:53:2: error: 'vector' does not name a type
vector<vector<int>>v;
^
0_0_38185814_24641.cpp: In constructor 'Trie<T>::Trie()':
0_0_38185814_24641.cpp:8:3: error: 'v' was not declared in this scope
v.push_back(vector<int>(valueNum + 1, 0));
^
0_0_38185814_24641.cpp:8:15: error: 'vector' was not declared in this scope
v.push_back(vector<int>(valueNum + 1, 0));
^
0_0_38185814_24641.cpp:8:22: error: expected primary-expression before 'int'
v.push_back(vector<int>(valueNum + 1, 0));
^
0_0_38185814_24641.cpp: In member function 'void Trie<T>::push(const T*, int, int)':
0_0_38185814_24641.cpp:17:8: error: 'v' was not declared in this scope
if (v[j][s[i] - minValue + 1] == 0)
^
0_0_38185814_24641.cpp:20:17: error: 'vector' was not declared in this scope
v.push_back(vector<int>(valueNum + 1, 0));
^
0_0_38185814_24641.cpp:20:24: error: expected primary-expression before 'int'
v.push_back(vector<int>(valueNum + 1, 0));
^
0_0_38185814_24641.cpp:22:8: error: 'v' was not declared in this scope
j = v[j][s[i] - minValue + 1];
^
0_0_38185814_24641.cpp:24:3: error: 'v' was not declared in this scope
v[j][0] = value;
^
0_0_38185814_24641.cpp: In member function 'int Trie<T>::find(const T*, int)':
0_0_38185814_24641.cpp:32:8: error: 'v' was not declared in this scope
if (v[j][s[i] - minValue + 1] == 0)return 0;
^
0_0_38185814_24641.cpp:33:8: error: 'v' was not declared in this scope
j = v[j][s[i] - minValue + 1];
^
0_0_38185814_24641.cpp:35:10: error: 'v' was not declared in this scope
return v[j][0];
^
|