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_36448799_23445.cpp:5:1: error: expected ',' or ';' before 'int'
 int trie[20][30],sum[N];
 ^
0_0_36448799_23445.cpp: In function 'void add()':
0_0_36448799_23445.cpp:13:12: error: 'trie' was not declared in this scope
         if(trie[c][x]==0)
            ^
0_0_36448799_23445.cpp:15:11: error: 'trie' was not declared in this scope
         c=trie[c][x];
           ^
0_0_36448799_23445.cpp:16:9: error: 'sum' was not declared in this scope
         sum[c]++;
         ^
0_0_36448799_23445.cpp: In function 'void query()':
0_0_36448799_23445.cpp:25:12: error: 'trie' was not declared in this scope
         if(trie[c][x]==0){
            ^
0_0_36448799_23445.cpp:29:11: error: 'trie' was not declared in this scope
         c=trie[c][x];
           ^
0_0_36448799_23445.cpp:31:19: error: 'sum' was not declared in this scope
     printf("%d\n",sum[c]);
                   ^


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