F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38184673_8485.cpp:16:2: error: 'vector' does not name a type
  vector<vector<int>>ans;
  ^
0_0_38184673_8485.cpp: In constructor 'Trie<T>::Trie()':
0_0_38184673_8485.cpp:19:3: error: 'ans' was not declared in this scope
   ans.push_back(vector<int>(0, valueNum + 1));
   ^
0_0_38184673_8485.cpp:19:17: error: 'vector' was not declared in this scope
   ans.push_back(vector<int>(0, valueNum + 1));
                 ^
0_0_38184673_8485.cpp:19:24: error: expected primary-expression before 'int'
   ans.push_back(vector<int>(0, valueNum + 1));
                        ^
0_0_38184673_8485.cpp: In member function 'void Trie<T>::push(T*, int, int)':
0_0_38184673_8485.cpp:28:8: error: 'ans' was not declared in this scope
    if (ans[j][s[i] - minValue + 1] == 0)
        ^
0_0_38184673_8485.cpp:31:19: error: 'vector' was not declared in this scope
     ans.push_back(vector<int>(0, valueNum + 1));
                   ^
0_0_38184673_8485.cpp:31:26: error: expected primary-expression before 'int'
     ans.push_back(vector<int>(0, valueNum + 1));
                          ^
0_0_38184673_8485.cpp:33:8: error: 'ans' was not declared in this scope
    j = ans[j][s[i] - minValue + 1];
        ^
0_0_38184673_8485.cpp:35:3: error: 'ans' was not declared in this scope
   ans[j][0] = value;
   ^
0_0_38184673_8485.cpp: In member function 'int Trie<T>::find(T*, int)':
0_0_38184673_8485.cpp:42:8: error: 'ans' was not declared in this scope
    if (ans[j][s[i] - minValue + 1] == 0)return 0;
        ^
0_0_38184673_8485.cpp:42:22: error: 'minValue' was not declared in this scope
    if (ans[j][s[i] - minValue + 1] == 0)return 0;
                      ^
0_0_38184673_8485.cpp:43:8: error: 'ans' was not declared in this scope
    j = ans[j][s[i] - minValue + 1];
        ^
0_0_38184673_8485.cpp:43:22: error: 'minValue' was not declared in this scope
    j = ans[j][s[i] - minValue + 1];
                      ^
0_0_38184673_8485.cpp:45:10: error: 'ans' was not declared in this scope
   return ans[j][0];
          ^
0_0_38184673_8485.cpp: In function 'int main()':
0_0_38184673_8485.cpp:72: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_38184673_8485.cpp:72:30: note: candidate is:
0_0_38184673_8485.cpp:21:7: note: void Trie<T>::push(T*, int, int) [with T = char]
  void push(T* s, int len, int value = 0)
       ^
0_0_38184673_8485.cpp:21:7: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
0_0_38184673_8485.cpp:83: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_38184673_8485.cpp:83:33: note: candidate is:
0_0_38184673_8485.cpp:37:6: note: int Trie<T>::find(T*, int) [with T = char]
  int find(T* s, int len)
      ^
0_0_38184673_8485.cpp:37:6: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'
0_0_38184673_8485.cpp:84: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_38184673_8485.cpp:84:44: note: candidate is:
0_0_38184673_8485.cpp:37:6: note: int Trie<T>::find(T*, int) [with T = char]
  int find(T* s, int len)
      ^
0_0_38184673_8485.cpp:37:6: note:   no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char*'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 19:56:01, Gzip enabled