0_0_39094864_31762.cpp:21:18: error: expected primary-expression before ';' token
21 | const int MAXN = ;
| ^
0_0_39094864_31762.cpp:25:12: error: expected primary-expression before ']' token
25 | }edge[MAXN*];
| ^
0_0_39094864_31762.cpp:26:13: error: expected primary-expression before ']' token
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^
0_0_39094864_31762.cpp:26:25: error: size of array 'pre' is not an integral constant-expression
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^~~~
0_0_39094864_31762.cpp:26:33: error: size of array 'a' is not an integral constant-expression
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^~~~
0_0_39094864_31762.cpp:26:45: error: size of array 'first' is not an integral constant-expression
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^~~~
0_0_39094864_31762.cpp:26:60: error: expected primary-expression before ']' token
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^
0_0_39094864_31762.cpp:26:75: error: expected primary-expression before ']' token
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^
0_0_39094864_31762.cpp:26:81: error: size of array 'vis' is not an integral constant-expression
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^~~~
0_0_39094864_31762.cpp:26:90: error: size of array 'fa' is not an integral constant-expression
26 | int dp[MAXN*][],ind,pre[MAXN],a[MAXN],first[MAXN],rev[MAXN*],tot,dfn[MAXN*],vis[MAXN],fa[MAXN],n,m;
| ^~~~
0_0_39094864_31762.cpp: In function 'void add(int, int)':
0_0_39094864_31762.cpp:28:1: error: 'edge' was not declared in this scope
28 | edge[ind].to = y;
| ^~~~
0_0_39094864_31762.cpp: In function 'void dfs(int, int, int)':
0_0_39094864_31762.cpp:36:11: error: expected primary-expression before ';' token
36 | vis[rt] = ;
| ^
0_0_39094864_31762.cpp:37:1: error: 'rev' was not declared in this scope
37 | rev[++tot] = rt;
| ^~~
0_0_39094864_31762.cpp:39:1: error: 'dfn' was not declared in this scope; did you mean 'dfs'?
39 | dfn[tot] = deq;
| ^~~
| dfs
0_0_39094864_31762.cpp:41:28: error: expected primary-expression before ';' token
41 | for(int i = pre[rt]; i != -; i = edge[i].next){
| ^
0_0_39094864_31762.cpp:41:34: error: 'edge' was not declared in this scope
41 | for(int i = pre[rt]; i != -; i = edge[i].next){
| ^~~~
0_0_39094864_31762.cpp:44:11: error: expected primary-expression before ',' token
44 | dfs(t,deq+,rt);
| ^
0_0_39094864_31762.cpp: At global scope:
0_0_39094864_31762.cpp:50:7: error: size of array 'b' is not an integral constant-expression
50 | int b[MAXN],cnt;
| ^~~~
0_0_39094864_31762.cpp: In function 'void rmq()':
0_0_39094864_31762.cpp:52:13: error: expected primary-expression before ';' token
52 | for(int i = ; i <= tot; i++){
| ^
0_0_39094864_31762.cpp:53:1: error: 'dp' was not declared in this scope
53 | dp[i][] = i;
| ^~
0_0_39094864_31762.cpp:53:7: error: expected primary-expression before ']' token
53 | dp[i][] = i;
| ^
0_0_39094864_31762.cpp:55:13: error: expected primary-expression before ';' token
55 | for(int i = ; i < ; i++){
| ^
0_0_39094864_31762.cpp:55:19: error: expected primary-expression before ';' token
55 | for(int i = ; i < ; i++){
| ^
0_0_39094864_31762.cpp:56:13: error: expected primary-expression before ';' token
56 | for(int j = ; j + ( << i) - <= tot; j++){
| ^
0_0_39094864_31762.cpp:56:21: error: expected primary-expression before '<<' token
56 | for(int j = ; j + ( << i) - <= tot; j++){
| ^~
0_0_39094864_31762.cpp:56:29: error: expected primary-expression before '<=' token
56 | for(int j = ; j + ( << i) - <= tot; j++){
| ^~
0_0_39094864_31762.cpp:57:9: error: 'dp' was not declared in this scope
57 | int x = dp[j][i-];
| ^~
0_0_39094864_31762.cpp:57:17: error: expected primary-expression before ']' token
57 | int x = dp[j][i-];
| ^
0_0_39094864_31762.cpp:58:15: error: expected primary-expression before '<<' token
58 | int y = dp[j+(<<(i-))][i-];
| ^~
0_0_39094864_31762.cpp:58:20: error: expected primary-expression before ')' token
58 | int y = dp[j+(<<(i-))][i-];
| ^
0_0_39094864_31762.cpp:58:26: error: expected primary-expression before ']' token
58 | int y = dp[j+(<<(i-))][i-];
| ^
0_0_39094864_31762.cpp:59:4: error: 'dfn' was not declared in this scope; did you mean 'dfs'?
59 | if(dfn[x] > dfn[y]){
| ^~~
| dfs
0_0_39094864_31762.cpp: In function 'int lca(int, int)':
0_0_39094864_31762.cpp:71:27: error: expected primary-expression before ')' token
71 | int k = (int)(log(y - x + ) * 1.0 / log(2.0));
| ^
0_0_39094864_31762.cpp:72:9: error: 'dp' was not declared in this scope
72 | int l = dp[x][k];
| ^~
0_0_39094864_31762.cpp:73:17: error: expected primary-expression before '<<' token
73 | int r = dp[y - (<<k) + ][k];
| ^~
0_0_39094864_31762.cpp:73:24: error: expected primary-expression before ']' token
73 | int r = dp[y - (<<k) + ][k];
| ^
0_0_39094864_31762.cpp:74:4: error: 'dfn' was not declared in this scope; did you mean 'dfs'?
74 | if(dfn[l] > dfn[r]){
| ^~~
| dfs
0_0_39094864_31762.cpp: In function 'int main()':
0_0_39094864_31762.cpp:82:13: error: expected primary-expression before ';' token
82 | for(int i = ; i <= n; i++)scanf("%d",&a[i]);
| ^
0_0_39094864_31762.cpp:83:7: error: expected primary-expression before ';' token
83 | ind = ;
| ^
0_0_39094864_31762.cpp:84:13: error: expected primary-expression before ',' token
84 | memset(pre,-,sizeof(pre));
| ^
0_0_39094864_31762.cpp:85:13: error: expected primary-expression before ';' token
85 | for(int i = ; i < n; i++){
| ^
0_0_39094864_31762.cpp:90:7: error: expected primary-expression before ';' token
90 | tot = ;
| ^
0_0_39094864_31762.cpp:91:12: error: expected primary-expression before ',' token
91 | memset(vis,,sizeof(vis));
| ^
0_0_39094864_31762.cpp:92:5: error: expected primary-expression before ',' token
92 | dfs(,,-);
| ^
0_0_39094864_31762.cpp:92:6: error: expected primary-expression before ',' token
92 | dfs(,,-);
| ^
0_0_39094864_31762.cpp:92:8: error: expected primary-expression before ')' token
92 | dfs(,,-);
| ^
0_0_39094864_31762.cpp:97:9: error: expected primary-expression before ')' token
97 | if(k == ){
| ^
0_0_39094864_31762.cpp:104:7: error: expected primary-expression before ';' token
104 | cnt = ;
| ^
0_0_39094864_31762.cpp:105:10: error: 'rev' was not declared in this scope
105 | int tp = rev[lca(x,y)];
| ^~~
0_0_39094864_31762.cpp:117:24: error: expected primary-expression before ']' token
117 | else printf("%d\n",b[k-]);
| ^
0_0_39094864_31762.cpp:121:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
121 | return ;
| ^~~~~~
|