0_0_37289916_25339.cpp:6:1: error: 'INT' does not name a type
INT T1 [MAXN], T2 [MAXN], C [MAXN]; // See the intermediate variable required by the SA array, no assignment
^
0_0_37289916_25339.cpp: In function 'void da(int*, int*, int*, int*, int, int)':
0_0_37289916_25339.cpp:12:23: error: 't1' was not declared in this scope
int i, j, p, *x = t1, *y = t2;
^
0_0_37289916_25339.cpp:13:27: error: 'c' was not declared in this scope
for(i = 0; i < m; i++)c[i] = 0;
^
0_0_37289916_25339.cpp:14:27: error: 'c' was not declared in this scope
for(i = 0; i < n; i++)c[x[i] = str[i]]++;
^
0_0_37289916_25339.cpp:15:27: error: 'c' was not declared in this scope
for(i = 1; i < m; i++)c[i] += c[i-1];
^
0_0_37289916_25339.cpp:16:35: error: 'c' was not declared in this scope
for(i = n-1; i >= 0; i--)sa[--c[x[i]]] = i;
^
0_0_37289916_25339.cpp:19:30: error: expected ')' before ';' token
For (i = n-j; i <n; i ++) y [p ++] = i; // The next J number second keyword is the smallest
^
0_0_37289916_25339.cpp:19:42: error: expected ';' before ')' token
For (i = n-j; i <n; i ++) y [p ++] = i; // The next J number second keyword is the smallest
^
0_0_37289916_25339.cpp:20:45: error: 'y' was not declared in this scope
for(i = 0; i < n; i++)if(sa[i] >= j)y[p++] = sa[i] - j;
^
0_0_37289916_25339.cpp:21:31: error: 'c' was not declared in this scope
for(i = 0; i < m; i++)c[i] = 0;
^
0_0_37289916_25339.cpp:22:31: error: 'c' was not declared in this scope
for(i = 0; i < n; i++)c[x[y[i]]]++;
^
0_0_37289916_25339.cpp:22:35: error: 'y' was not declared in this scope
for(i = 0; i < n; i++)c[x[y[i]]]++;
^
0_0_37289916_25339.cpp:23:31: error: 'c' was not declared in this scope
for(i = 1; i < m; i++)c[i] += c[i-1];
^
0_0_37289916_25339.cpp:24:39: error: 'c' was not declared in this scope
for(i = n-1; i >= 0; i--)sa[--c[x[y[i]]]] = y[i];
^
0_0_37289916_25339.cpp:24:43: error: 'y' was not declared in this scope
for(i = n-1; i >= 0; i--)sa[--c[x[y[i]]]] = y[i];
^
0_0_37289916_25339.cpp:25:16: error: 'y' was not declared in this scope
swap(x,y);
^
0_0_37289916_25339.cpp:30:18: error: 'M' was not declared in this scope
M = P; // The maximum number of the next base sort
^
0_0_37289916_25339.cpp:30:22: error: 'P' was not declared in this scope
M = P; // The maximum number of the next base sort
^
|