0_0_38184684_27499.cpp: In constructor 'Trie<T>::Trie()':
0_0_38184684_27499.cpp:20:32: error: 'valueNum' was not declared in this scope
ans.push_back(vector<int>(0, valueNum + 1));
^
0_0_38184684_27499.cpp: In member function 'int Trie<T>::find(T*, int)':
0_0_38184684_27499.cpp:43:22: error: 'minValue' was not declared in this scope
if (ans[j][s[i] - minValue + 1] == 0)return 0;
^
0_0_38184684_27499.cpp:44:22: error: 'minValue' was not declared in this scope
j = ans[j][s[i] - minValue + 1];
^
0_0_38184684_27499.cpp: In function 'int main()':
0_0_38184684_27499.cpp:73:30: error: no matching function for call to 'Trie<char>::push(<unresolved overloaded function type>, std::basic_string<char>::size_type, int&)'
t.push(b.data,b.length(),ka);
^
0_0_38184684_27499.cpp:73:30: note: candidate is:
0_0_38184684_27499.cpp:22:7: note: void Trie<T>::push(T*, int, int) [with T = char]
void push(T* s, int len, int value = 0)
^
0_0_38184684_27499.cpp:22:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
0_0_38184684_27499.cpp:84:33: error: no matching function for call to 'Trie<char>::find(<unresolved overloaded function type>, std::basic_string<char>::size_type)'
if (t.find(b.data, b.length()) == 0)cout << b;
^
0_0_38184684_27499.cpp:84:33: note: candidate is:
0_0_38184684_27499.cpp:38:6: note: int Trie<T>::find(T*, int) [with T = char]
int find(T* s, int len)
^
0_0_38184684_27499.cpp:38:6: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
0_0_38184684_27499.cpp:85:44: error: no matching function for call to 'Trie<char>::find(<unresolved overloaded function type>, std::basic_string<char>::size_type)'
else cout << a[t.find(b.data, b.length())];
^
0_0_38184684_27499.cpp:85:44: note: candidate is:
0_0_38184684_27499.cpp:38:6: note: int Trie<T>::find(T*, int) [with T = char]
int find(T* s, int len)
^
0_0_38184684_27499.cpp:38:6: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
|