0_0_15728833_18228.cpp:8:5: error: 'ULL' does not name a type
ULL H[MAX_N];
^
0_0_15728833_18228.cpp:9:5: error: 'ULL' does not name a type
ULL XL[MAX_N];
^
0_0_15728833_18228.cpp:21:5: error: 'ULL' does not name a type
ULL hash(int i,int L){
^
0_0_15728833_18228.cpp: In member function 'void HASH::build(char*)':
0_0_15728833_18228.cpp:14:9: error: 'H' was not declared in this scope
H[len]=0;
^
0_0_15728833_18228.cpp:15:9: error: 'XL' was not declared in this scope
XL[0]=1;
^
0_0_15728833_18228.cpp: At global scope:
0_0_15728833_18228.cpp:27:1: error: 'ULL' does not name a type
ULL a[MAX_N];
^
0_0_15728833_18228.cpp: In function 'bool cmp(int, int)':
0_0_15728833_18228.cpp:31:9: error: 'a' was not declared in this scope
if (a[x]==a[y]) return x<y;
^
0_0_15728833_18228.cpp:32:12: error: 'a' was not declared in this scope
return a[x]<a[y];
^
0_0_15728833_18228.cpp: In function 'bool C(int)':
0_0_15728833_18228.cpp:38:9: error: 'a' was not declared in this scope
a[cnt]=hs.hash(i,L);
^
0_0_15728833_18228.cpp:38:19: error: 'struct HASH' has no member named 'hash'
a[cnt]=hs.hash(i,L);
^
0_0_15728833_18228.cpp:41:23: error: 'sort' was not declared in this scope
sort(id,id+cnt,cmp);
^
0_0_15728833_18228.cpp:43:13: error: 'a' was not declared in this scope
if (a[id[i]]==a[id[i-1]]) {
^
0_0_15728833_18228.cpp:45:42: error: 'max' was not declared in this scope
if (sum>=m) idx=max(idx,id[i]);
^
|