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_39029578_20356.cpp:11:5: error: 'vector' does not name a type
   11 |     vector<treeNode*> children;
      |     ^~~~~~
0_0_39029578_20356.cpp: In function 'void add(treeNode*, std::string, int)':
0_0_39029578_20356.cpp:21:18: error: 'struct treeNode' has no member named 'children'
   21 |         if(root->children[i]->ch == str[pos]) {
      |                  ^~~~~~~~
0_0_39029578_20356.cpp:22:19: error: 'struct treeNode' has no member named 'children'
   22 |             root->children[i]->visited ++;
      |                   ^~~~~~~~
0_0_39029578_20356.cpp:32:15: error: 'struct treeNode' has no member named 'children'
   32 |         root->children.push_back(tmp);
      |               ^~~~~~~~
0_0_39029578_20356.cpp:36:15: error: 'struct treeNode' has no member named 'children'
   36 |     add(root->children[i], str, pos+1);
      |               ^~~~~~~~
0_0_39029578_20356.cpp: In function 'int query(treeNode*, std::string, int)':
0_0_39029578_20356.cpp:44:22: error: 'struct treeNode' has no member named 'children'
   44 |             if(root->children[i]->ch == str[pos]) {
      |                      ^~~~~~~~
0_0_39029578_20356.cpp:46:30: error: 'struct treeNode' has no member named 'children'
   46 |                 root = root->children[i];
      |                              ^~~~~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 17:26:40, Gzip enabled