0_0_22267283_29017.cpp:1:3: error: expected unqualified-id before 'for'
for (i = 1; i <= n; i++) if (SA[i] > w) tp[++p] = SA[i] - w;
^
0_0_22267283_29017.cpp:1:15: error: 'i' does not name a type
for (i = 1; i <= n; i++) if (SA[i] > w) tp[++p] = SA[i] - w;
^
0_0_22267283_29017.cpp:1:23: error: 'i' does not name a type
for (i = 1; i <= n; i++) if (SA[i] > w) tp[++p] = SA[i] - w;
^
0_0_22267283_29017.cpp:4:8: error: expected constructor, destructor, or type conversion before '(' token
RSort(rank1,tp);
^
0_0_22267283_29017.cpp:6:3: error: 't' does not name a type
t = rank1;
^
0_0_22267283_29017.cpp:7:3: error: 'rank1' does not name a type
rank1 = tp;
^
0_0_22267283_29017.cpp:8:3: error: 'tp' does not name a type
tp = t;
^
0_0_22267283_29017.cpp:9:3: error: 'rank1' does not name a type
rank1[SA[1]] = p = 1;
^
0_0_22267283_29017.cpp:12:3: error: expected unqualified-id before 'for'
for (i = 2; i <= n; i++) rank1[SA[i]] = cmp(tp, SA[i], SA[i - 1], w) ? p : ++p;
^
0_0_22267283_29017.cpp:12:15: error: 'i' does not name a type
for (i = 2; i <= n; i++) rank1[SA[i]] = cmp(tp, SA[i], SA[i - 1], w) ? p : ++p;
^
0_0_22267283_29017.cpp:12:23: error: 'i' does not name a type
for (i = 2; i <= n; i++) rank1[SA[i]] = cmp(tp, SA[i], SA[i - 1], w) ? p : ++p;
^
0_0_22267283_29017.cpp:13:2: error: expected declaration before '}' token
}
^
|