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_37786212_28074.cpp:11:1: error: 'uint' does not name a type
 uint ha[N],base[N];
 ^
0_0_37786212_28074.cpp:17:5: error: 'uint' does not name a type
     uint state[N];
     ^
0_0_37786212_28074.cpp: In member function 'int HASHMAP::insert(int, int)':
0_0_37786212_28074.cpp:26:21: error: 'state' was not declared in this scope
             if(val==state[i]) {
                     ^
0_0_37786212_28074.cpp:32:19: error: 'state' was not declared in this scope
         f[si]=id; state[si]=val; next[si]=head[h];
                   ^
0_0_37786212_28074.cpp: In function 'void work()':
0_0_37786212_28074.cpp:39:16: error: 'ha' was not declared in this scope
     rep(i,1,n) ha[i]=ha[i-1]*hs+s[i]-'a';
                ^
0_0_37786212_28074.cpp:45:19: error: 'ha' was not declared in this scope
             int v=ha[r]-ha[l-1]*base[i];
                   ^
0_0_37786212_28074.cpp:45:33: error: 'base' was not declared in this scope
             int v=ha[r]-ha[l-1]*base[i];
                                 ^
0_0_37786212_28074.cpp: In function 'int main()':
0_0_37786212_28074.cpp:61:5: error: 'base' was not declared in this scope
     base[0]=1;
     ^


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-15 01:52:38, Gzip enabled