0_0_38810326_3939.cpp:5:7: error: 'QWQ' was not declared in this scope
5 | int p[QWQ],sa[QWQ],buf1[QWQ],buf2[QWQ];
| ^~~
0_0_38810326_3939.cpp:5:15: error: 'QWQ' was not declared in this scope
5 | int p[QWQ],sa[QWQ],buf1[QWQ],buf2[QWQ];
| ^~~
0_0_38810326_3939.cpp:5:25: error: 'QWQ' was not declared in this scope
5 | int p[QWQ],sa[QWQ],buf1[QWQ],buf2[QWQ];
| ^~~
0_0_38810326_3939.cpp:5:35: error: 'QWQ' was not declared in this scope
5 | int p[QWQ],sa[QWQ],buf1[QWQ],buf2[QWQ];
| ^~~
0_0_38810326_3939.cpp:6:10: error: 'QWQ' was not declared in this scope
6 | int buf3[QWQ],n,ka,to[QWQ][20],s[QWQ];
| ^~~
0_0_38810326_3939.cpp:6:23: error: 'QWQ' was not declared in this scope
6 | int buf3[QWQ],n,ka,to[QWQ][20],s[QWQ];
| ^~~
0_0_38810326_3939.cpp:6:34: error: 'QWQ' was not declared in this scope
6 | int buf3[QWQ],n,ka,to[QWQ][20],s[QWQ];
| ^~~
0_0_38810326_3939.cpp:7:10: error: 'QWQ' was not declared in this scope
7 | char buf[QWQ]; int T;
| ^~~
0_0_38810326_3939.cpp: In function 'void Sort(int*, int*, int)':
0_0_38810326_3939.cpp:9:27: error: 'p' was not declared in this scope
9 | for (int i=0;i<m;i++) p[i]=0;
| ^
0_0_38810326_3939.cpp:10:29: error: 'p' was not declared in this scope
10 | for (int i=0;i<n;i++) ++p[x[i]];
| ^
0_0_38810326_3939.cpp:11:27: error: 'p' was not declared in this scope
11 | for (int i=1;i<m;i++) p[i]+=p[i-1];
| ^
0_0_38810326_3939.cpp:12:30: error: 'sa' was not declared in this scope; did you mean 'ka'?
12 | for (int i=n-1;i>=0;i--) sa[--p[x[y[i]]]]=y[i];
| ^~
| ka
0_0_38810326_3939.cpp:12:35: error: 'p' was not declared in this scope
12 | for (int i=n-1;i>=0;i--) sa[--p[x[y[i]]]]=y[i];
| ^
0_0_38810326_3939.cpp: In function 'void SA(int*, int, int)':
0_0_38810326_3939.cpp:15:12: error: 'buf1' was not declared in this scope
15 | int *x=buf1,*y=buf2,*z=buf3;
| ^~~~
0_0_38810326_3939.cpp:16:10: error: 'y' was not declared in this scope
16 | x[n]=y[n]=-1;
| ^
0_0_38810326_3939.cpp:21:31: error: 'z' was not declared in this scope
21 | for (int i=0;i<n;i++) z[i]=x[to[i][j]],y[i]=i;
| ^
0_0_38810326_3939.cpp:21:38: error: 'to' was not declared in this scope; did you mean 'tm'?
21 | for (int i=0;i<n;i++) z[i]=x[to[i][j]],y[i]=i;
| ^~
| tm
0_0_38810326_3939.cpp:22:14: error: 'z' was not declared in this scope
22 | Sort(z,y,m);
| ^
0_0_38810326_3939.cpp:23:36: error: 'sa' was not declared in this scope; did you mean 's'?
23 | for (int i=0;i<n;i++) y[i]=sa[i];
| ^~
| s
0_0_38810326_3939.cpp:24:27: error: 'sa' was not declared in this scope; did you mean 's'?
24 | Sort(x,y,m),p=1,y[sa[0]]=0;
| ^~
| s
0_0_38810326_3939.cpp:26:59: error: 'to' was not declared in this scope; did you mean 'tm'?
26 | y[sa[i]]=(x[sa[i-1]]==x[sa[i]]&&x[to[sa[i-1]][j]]==x[to[sa[i]][j]]) ? p-1:p++;
| ^~
| tm
0_0_38810326_3939.cpp: In function 'int main()':
0_0_38810326_3939.cpp:34:25: error: 'buf' was not declared in this scope
34 | scanf("%d%s",&n,buf);
| ^~~
0_0_38810326_3939.cpp:35:31: error: 's' was not declared in this scope
35 | for (int i=0;i<n;i++) s[i]=buf[i];
| ^
0_0_38810326_3939.cpp:36:31: error: 'to' was not declared in this scope; did you mean 'tm'?
36 | for (int i=0;i<n;i++) to[i][0]=((ll)i*i+1)%n;
| ^~
| tm
0_0_38810326_3939.cpp:39:13: error: 'to' was not declared in this scope; did you mean 'tm'?
39 | to[i][k]=to[to[i][k-1]][k-1];
| ^~
| tm
0_0_38810326_3939.cpp:40:12: error: 's' was not declared in this scope
40 | SA(s,n,'9');
| ^
0_0_38810326_3939.cpp:41:24: error: 'sa' was not declared in this scope; did you mean 'ka'?
41 | for (int i=0,u=sa[n-1];i<n;i++,u=to[u][0])
| ^~
| ka
0_0_38810326_3939.cpp:41:42: error: 'to' was not declared in this scope; did you mean 'tm'?
41 | for (int i=0,u=sa[n-1];i<n;i++,u=to[u][0])
| ^~
| tm
|