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_29470772_1945.cpp: In function 'void add(std::string)':
0_0_29470772_1945.cpp:13:24: error: invalid types 'int[int]' for array subscript
         if(trie[root][t]==0) trie[root][t]=++cnt;
                        ^
0_0_29470772_1945.cpp:13:42: error: invalid types 'int[int]' for array subscript
         if(trie[root][t]==0) trie[root][t]=++cnt;
                                          ^
0_0_29470772_1945.cpp:15:26: error: invalid types 'int[int]' for array subscript
         root=trie[root][t];
                          ^
0_0_29470772_1945.cpp:16:19: error: lvalue required as increment operand
          tot[root]++;
                   ^
0_0_29470772_1945.cpp: In function 'int findd(std::string)':
0_0_29470772_1945.cpp:23:38: error: invalid types 'int[int]' for array subscript
         if(i!=len-1)root=trie[root][t];
                                      ^
0_0_29470772_1945.cpp:24:29: error: invalid conversion from 'int*' to 'int' [-fpermissive]
         else return tot[root];
                             ^


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-10-06 21:21:59, Gzip enabled