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