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_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];
          ^


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-17 08:39:04, Gzip enabled