0_0_30483127_28514.cpp:108:11: error: redefinition of 'const int MAX_N'
const int MAX_N=1e5+5;
^
0_0_30483127_28514.cpp:9:11: note: 'const int MAX_N' previously defined here
const int MAX_N=1e5+5;
^
0_0_30483127_28514.cpp:109:15: error: redefinition of 'char str [100005]'
char str[MAX_N];
^
0_0_30483127_28514.cpp:10:6: note: 'char str [100005]' previously declared here
char str[MAX_N];
^
0_0_30483127_28514.cpp:110:13: error: redefinition of 'int SA [100005]'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:5: note: 'int SA [100005]' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:24: error: redefinition of 'int rnk [100005]'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:15: note: 'int rnk [100005]' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:38: error: redefinition of 'int Height [100005]'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:26: note: 'int Height [100005]' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:49: error: redefinition of 'int tax [100005]'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:40: note: 'int tax [100005]' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:59: error: redefinition of 'int tp [100005]'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:51: note: 'int tp [100005]' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:68: error: redefinition of 'int a [100005]'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:61: note: 'int a [100005]' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:70: error: redefinition of 'int n'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:70: note: 'int n' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:110:72: error: redefinition of 'int m'
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp:11:72: note: 'int m' previously declared here
int SA[MAX_N],rnk[MAX_N],Height[MAX_N],tax[MAX_N],tp[MAX_N],a[MAX_N],n,m;
^
0_0_30483127_28514.cpp: In function 'void RSort()':
0_0_30483127_28514.cpp:111:6: error: redefinition of 'void RSort()'
void RSort()
^
0_0_30483127_28514.cpp:12:6: note: 'void RSort()' previously defined here
void RSort()
^
0_0_30483127_28514.cpp: In function 'bool cmp(int*, int, int, int)':
0_0_30483127_28514.cpp:118:6: error: redefinition of 'bool cmp(int*, int, int, int)'
bool cmp(int *f,int x,int y,int w){return f[x]==f[y]&&f[x+w]==f[y+w];}
^
0_0_30483127_28514.cpp:19:6: note: 'bool cmp(int*, int, int, int)' previously defined here
bool cmp(int *f,int x,int y,int w){return f[x]==f[y]&&f[x+w]==f[y+w];}
^
0_0_30483127_28514.cpp: In function 'void SA_Init()':
0_0_30483127_28514.cpp:119:6: error: redefinition of 'void SA_Init()'
void SA_Init()
^
0_0_30483127_28514.cpp:20:6: note: 'void SA_Init()' previously defined here
void SA_Init()
^
0_0_30483127_28514.cpp: In function 'void Suffix_Array()':
0_0_30483127_28514.cpp:124:6: error: redefinition of 'void Suffix_Array()'
void Suffix_Array()
^
0_0_30483127_28514.cpp:25:6: note: 'void Suffix_Array()' previously defined here
void Suffix_Array()
^
0_0_30483127_28514.cpp: At global scope:
0_0_30483127_28514.cpp:139:17: error: redefinition of 'int dp [100005][25]'
int dp[MAX_N][25],K;
^
0_0_30483127_28514.cpp:40:5: note: 'int dp [100005][25]' previously declared here
int dp[MAX_N][25],K;
^
0_0_30483127_28514.cpp:139:19: error: redefinition of 'int K'
int dp[MAX_N][25],K;
^
0_0_30483127_28514.cpp:40:19: note: 'int K' previously declared here
int dp[MAX_N][25],K;
^
0_0_30483127_28514.cpp: In function 'void RMQ_Init()':
0_0_30483127_28514.cpp:140:6: error: redefinition of 'void RMQ_Init()'
void RMQ_Init()
^
0_0_30483127_28514.cpp:41:6: note: 'void RMQ_Init()' previously defined here
void RMQ_Init()
^
0_0_30483127_28514.cpp: In function 'int RMQ(int, int)':
0_0_30483127_28514.cpp:149:5: error: redefinition of 'int RMQ(int, int)'
int RMQ(int l,int r)
^
0_0_30483127_28514.cpp:50:5: note: 'int RMQ(int, int)' previously defined here
int RMQ(int l,int r)
^
0_0_30483127_28514.cpp: In function 'int Get(int)':
0_0_30483127_28514.cpp:154:5: error: redefinition of 'int Get(int)'
int Get(int x)
^
0_0_30483127_28514.cpp:55:5: note: 'int Get(int)' previously defined here
int Get(int x)
^
0_0_30483127_28514.cpp: In function 'int main()':
0_0_30483127_28514.cpp:165:5: error: redefinition of 'int main()'
int main()
^
0_0_30483127_28514.cpp:66:5: note: 'int main()' previously defined here
int main()
^
|