0_0_17024902_244.cpp:2:14: error: 'seed' was not declared in this scope
int head[seed],next[maxn],size;
^
0_0_17024902_244.cpp:2:25: error: 'maxn' was not declared in this scope
int head[seed],next[maxn],size;
^
0_0_17024902_244.cpp:3:5: error: 'LL' does not name a type
LL state[maxn];
^
0_0_17024902_244.cpp:4:5: error: 'LL' does not name a type
LL f[maxn];
^
0_0_17024902_244.cpp:9:17: error: 'LL' has not been declared
void insert(LL st,LL ans){
^
0_0_17024902_244.cpp:9:23: error: 'LL' has not been declared
void insert(LL st,LL ans){
^
0_0_17024902_244.cpp: In member function 'void HASHMAP::clear()':
0_0_17024902_244.cpp:7:16: error: 'head' was not declared in this scope
memset(head,-1,sizeof(head));
^
0_0_17024902_244.cpp:7:36: error: 'memset' was not declared in this scope
memset(head,-1,sizeof(head));
^
0_0_17024902_244.cpp: In member function 'void HASHMAP::insert(int, int)':
0_0_17024902_244.cpp:10:18: error: 'seed' was not declared in this scope
int h=st%seed;
^
0_0_17024902_244.cpp:11:20: error: 'head' was not declared in this scope
for (int i=head[h];i!=-1;i=next[i]){
^
0_0_17024902_244.cpp:11:36: error: 'next' was not declared in this scope
for (int i=head[h];i!=-1;i=next[i]){
^
0_0_17024902_244.cpp:12:17: error: 'state' was not declared in this scope
if (state[i]==st){
^
0_0_17024902_244.cpp:13:17: error: 'f' was not declared in this scope
f[i]+=ans;
^
0_0_17024902_244.cpp:17:9: error: 'state' was not declared in this scope
state[size]=st;
^
0_0_17024902_244.cpp:18:9: error: 'f' was not declared in this scope
f[size]=ans;
^
0_0_17024902_244.cpp:19:9: error: 'next' was not declared in this scope
next[size]=head[h];
^
0_0_17024902_244.cpp:19:20: error: 'head' was not declared in this scope
next[size]=head[h];
^
|