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;
^
|