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_27342909_14456.cpp:4:1: error: expected ',' or ';' before 'int'
 int trie[maxn][30],tot=1,end1[maxn],sum[maxn]={0};
 ^
0_0_27342909_14456.cpp: In function 'void insert1(char*)':
0_0_27342909_14456.cpp:12:12: error: 'trie' was not declared in this scope
         if(trie[p][ch] == 0) trie[p][ch] =++tot;
            ^
0_0_27342909_14456.cpp:12:45: error: 'tot' was not declared in this scope
         if(trie[p][ch] == 0) trie[p][ch] =++tot;
                                             ^
0_0_27342909_14456.cpp:13:9: error: 'sum' was not declared in this scope
         sum[trie[p][ch]]++;
         ^
0_0_27342909_14456.cpp:13:13: error: 'trie' was not declared in this scope
         sum[trie[p][ch]]++;
             ^
0_0_27342909_14456.cpp:16:5: error: 'end1' was not declared in this scope
     end1[p]=true;
     ^
0_0_27342909_14456.cpp: In function 'int search1(char*)':
0_0_27342909_14456.cpp:24:11: error: 'trie' was not declared in this scope
         p=trie[p][str[i]-'a'];
           ^
0_0_27342909_14456.cpp:27:12: error: 'sum' was not declared in this scope
     return sum[p];
            ^


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-26 00:46:09, Gzip enabled