0_0_38906381_21962.cpp:14:5: error: expected initializer before 'maxx'
14 | maxx[pos]=max(maxx[pos<<1],maxx[pos<<1|1]);
| ^~~~
0_0_38906381_21962.cpp:18:5: error: expected initializer before 'if'
18 | if(l==r)maxx[pos]=position[l];return ;
| ^~
0_0_38906381_21962.cpp:18:35: error: expected unqualified-id before 'return'
18 | if(l==r)maxx[pos]=position[l];return ;
| ^~~~~~
0_0_38906381_21962.cpp:19:12: error: 'l' was not declared in this scope
19 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:19:14: error: 'r' was not declared in this scope
19 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:20:10: error: expected constructor, destructor, or type conversion before '(' token
20 | build(l,m,pos<<1);build(m+1,r,pos<<1|1);up(pos);
| ^
0_0_38906381_21962.cpp:20:28: error: expected constructor, destructor, or type conversion before '(' token
20 | build(l,m,pos<<1);build(m+1,r,pos<<1|1);up(pos);
| ^
0_0_38906381_21962.cpp:20:47: error: expected constructor, destructor, or type conversion before '(' token
20 | build(l,m,pos<<1);build(m+1,r,pos<<1|1);up(pos);
| ^
0_0_38906381_21962.cpp:24:5: error: expected initializer before 'if'
24 | if(l==r)maxx[pos]=inf;return ;
| ^~
0_0_38906381_21962.cpp:24:27: error: expected unqualified-id before 'return'
24 | if(l==r)maxx[pos]=inf;return ;
| ^~~~~~
0_0_38906381_21962.cpp:25:9: error: redefinition of 'int m'
25 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:19:9: note: 'int m' previously defined here
19 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:25:12: error: 'l' was not declared in this scope
25 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:25:14: error: 'r' was not declared in this scope
25 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:26:5: error: expected unqualified-id before 'if'
26 | if(x<=m)upnode(x,l,m,pos<<1);
| ^~
0_0_38906381_21962.cpp:27:5: error: expected unqualified-id before 'else'
27 | else upnode(x,m+1,r,pos<<1|1);
| ^~~~
0_0_38906381_21962.cpp:28:7: error: expected constructor, destructor, or type conversion before '(' token
28 | up(pos);
| ^
0_0_38906381_21962.cpp:32:4: error: expected initializer before 'if'
32 | if(l==r)
| ^~
0_0_38906381_21962.cpp:35:8: error: expected unqualified-id before 'else'
35 | else return inf;
| ^~~~
0_0_38906381_21962.cpp:37:8: error: redefinition of 'int m'
37 | int m=(l+r)>>1;int ans=inf;
| ^
0_0_38906381_21962.cpp:19:9: note: 'int m' previously defined here
19 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:37:11: error: 'l' was not declared in this scope
37 | int m=(l+r)>>1;int ans=inf;
| ^
0_0_38906381_21962.cpp:37:13: error: 'r' was not declared in this scope
37 | int m=(l+r)>>1;int ans=inf;
| ^
0_0_38906381_21962.cpp:38:4: error: expected unqualified-id before 'if'
38 | if(L<=m&&maxx[pos<<1]>x)ans=min(ans,query(x,L,R,l,m,pos<<1));
| ^~
0_0_38906381_21962.cpp:39:4: error: expected unqualified-id before 'if'
39 | if(ans!=inf)return ans;
| ^~
0_0_38906381_21962.cpp:40:4: error: expected unqualified-id before 'if'
40 | if(R>m&&maxx[pos<<1|1]>x)ans=min(ans,query(x,L,R,m+1,r,pos<<1|1));
| ^~
0_0_38906381_21962.cpp:41:4: error: expected unqualified-id before 'return'
41 | return ans;
| ^~~~~~
0_0_38906381_21962.cpp:43:7: error: redefinition of 'int m'
43 | int n,m,t1,t2,t3,lastans,f[N];
| ^
0_0_38906381_21962.cpp:19:9: note: 'int m' previously defined here
19 | int m=(l+r)>>1;
| ^
0_0_38906381_21962.cpp:46:5: error: expected initializer before 'int'
46 | int cas;cin>>cas;
| ^~~
0_0_38906381_21962.cpp:46:13: error: 'cin' does not name a type
46 | int cas;cin>>cas;
| ^~~
0_0_38906381_21962.cpp:47:5: error: expected unqualified-id before 'while'
47 | while(cas--)
| ^~~~~
0_0_38906381_21962.cpp:3:20: error: expected unqualified-id before 'for'
3 | #define rep(i,a,b) for(int i=(a);i<=(b);i++)
| ^~~
0_0_38906381_21962.cpp:50:9: note: in expansion of macro 'rep'
50 | rep(i,1,n)
| ^~~
0_0_38906381_21962.cpp:50:13: error: 'i' does not name a type
50 | rep(i,1,n)
| ^
0_0_38906381_21962.cpp:3:34: note: in definition of macro 'rep'
3 | #define rep(i,a,b) for(int i=(a);i<=(b);i++)
| ^
0_0_38906381_21962.cpp:50:13: error: 'i' does not name a type
50 | rep(i,1,n)
| ^
0_0_38906381_21962.cpp:3:41: note: in definition of macro 'rep'
3 | #define rep(i,a,b) for(int i=(a);i<=(b);i++)
| ^
0_0_38906381_21962.cpp:52:9: error: 'position' does not name a type
52 | position[n+1]=inf;
| ^~~~~~~~
0_0_38906381_21962.cpp:53:14: error: expected constructor, destructor, or type conversion before '(' token
53 | build(1,n+1,1);lastans=0;
| ^
0_0_38906381_21962.cpp:53:24: error: 'lastans' does not name a type
53 | build(1,n+1,1);lastans=0;
| ^~~~~~~
0_0_38906381_21962.cpp:54:9: error: expected unqualified-id before 'while'
54 | while(m--)
| ^~~~~
0_0_38906381_21962.cpp:56:28: error: expected constructor, destructor, or type conversion before '(' token
56 | int a,b,c;scanf("%d",&a);
| ^
0_0_38906381_21962.cpp:57:13: error: expected unqualified-id before 'if'
57 | if(a==1)
| ^~
0_0_38906381_21962.cpp:59:32: error: 'b' does not name a type
59 | scanf("%d",&b);b^=lastans;
| ^
0_0_38906381_21962.cpp:60:23: error: expected constructor, destructor, or type conversion before '(' token
60 | upnode(f[b],1,n+1,1);
| ^
0_0_38906381_21962.cpp:62:13: error: expected unqualified-id before 'else'
62 | else
| ^~~~
0_0_38906381_21962.cpp:64:37: error: 'b' does not name a type
64 | scanf("%d%d",&b,&c);b^=lastans;c^=lastans;
| ^
0_0_38906381_21962.cpp:64:48: error: 'c' does not name a type
64 | scanf("%d%d",&b,&c);b^=lastans;c^=lastans;
| ^
0_0_38906381_21962.cpp:65:17: error: 'lastans' does not name a type
65 | lastans=query(b,c,n+1,1,n+1,1);
| ^~~~~~~
0_0_38906381_21962.cpp:66:23: error: expected constructor, destructor, or type conversion before '(' token
66 | printf("%d\\n",lastans);
| ^
0_0_38906381_21962.cpp:70:5: error: expected unqualified-id before 'return'
70 | return 0;
| ^~~~~~
|