0_0_14481466_19427.cpp:156:1: error: expected initializer before 'if'
if(query(b)==a)
^
0_0_14481466_19427.cpp:160:5: error: 'x' does not name a type
x=l[a];y=r[a];z=y;
^
0_0_14481466_19427.cpp:160:12: error: 'y' does not name a type
x=l[a];y=r[a];z=y;
^
0_0_14481466_19427.cpp:160:19: error: 'z' does not name a type
x=l[a];y=r[a];z=y;
^
0_0_14481466_19427.cpp:161:10: error: expected constructor, destructor, or type conversion before '(' token
splay(x,0);
^
0_0_14481466_19427.cpp:162:10: error: expected constructor, destructor, or type conversion before '(' token
splay(y,0);
^
0_0_14481466_19427.cpp:166:5: error: 'll' does not name a type
ll=ch[x][0];
^
0_0_14481466_19427.cpp:167:5: error: 'rr' does not name a type
rr=ch[y][1];
^
0_0_14481466_19427.cpp:168:5: error: 'conn' does not name a type
conn=get_max(ll);
^
0_0_14481466_19427.cpp:170:5: error: 'pre' does not name a type
pre[ll]=pre[rr]=0;
^
0_0_14481466_19427.cpp:171:5: error: 'ch' does not name a type
ch[x][0]=ch[y][1]=0;
^
0_0_14481466_19427.cpp:172:5: error: expected unqualified-id before 'if'
if(conn!=0)ch[conn][1]=rr;
^
0_0_14481466_19427.cpp:173:5: error: 'pre' does not name a type
pre[rr]=conn;
^
0_0_14481466_19427.cpp:175:5: error: expected unqualified-id before 'if'
if(b==0)return;
^
0_0_14481466_19427.cpp:179:5: error: expected unqualified-id before 'if'
if(rr!=0)splay(rr,0);
^
0_0_14481466_19427.cpp:181:5: error: 'x' does not name a type
x=l[b];
^
0_0_14481466_19427.cpp:182:10: error: expected constructor, destructor, or type conversion before '(' token
splay(x,0);
^
0_0_14481466_19427.cpp:183:5: error: 'y' does not name a type
y=get_min(ch[x][1]);
^
0_0_14481466_19427.cpp:184:10: error: expected constructor, destructor, or type conversion before '(' token
splay(y,x);
^
0_0_14481466_19427.cpp:186:5: error: 'ch' does not name a type
ch[y][0]=z;pre[z]=y;
^
0_0_14481466_19427.cpp:186:16: error: 'pre' does not name a type
ch[y][0]=z;pre[z]=y;
^
0_0_14481466_19427.cpp:187:1: error: expected declaration before '}' token
}
^
|