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_26221336_9554.cpp: In function 'void insert_(char*)':
0_0_26221336_9554.cpp:19:12: error: 'tree' was not declared in this scope
        if(!tree[root][id]) tree[root][id]=++tot;
            ^
0_0_26221336_9554.cpp:19:45: error: 'tot' was not declared in this scope
        if(!tree[root][id]) tree[root][id]=++tot;
                                             ^
0_0_26221336_9554.cpp:20:8: error: 'sum' was not declared in this scope
        sum[tree[root][id]]++;//记录节点访问次数
        ^
0_0_26221336_9554.cpp:20:12: error: 'tree' was not declared in this scope
        sum[tree[root][id]]++;//记录节点访问次数
            ^
0_0_26221336_9554.cpp: In function 'int find_(char*)':
0_0_26221336_9554.cpp:32:13: error: 'tree' was not declared in this scope
         if(!tree[root][id]) return 0;
             ^
0_0_26221336_9554.cpp:33:14: error: 'tree' was not declared in this scope
         root=tree[root][id];
              ^
0_0_26221336_9554.cpp:35:12: error: 'sum' was not declared in this scope
     return sum[root];//返回当前字符串结尾节点的访问次数,也就是作为前缀的出现次数
            ^
0_0_26221336_9554.cpp: At global scope:
0_0_26221336_9554.cpp:42:1: error: 'Trie' does not name a type
 Trie ac;
 ^
0_0_26221336_9554.cpp: In function 'int main()':
0_0_26221336_9554.cpp:49:9: error: 'ac' was not declared in this scope
         ac.init();
         ^


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 19:28:02, Gzip enabled