0_0_26169734_20841\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_26169734_20841\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_26169734_20841\Main.java:3: 错误: 需要class, interface或enum
const int MAXN = 1e5 + 10;
^
0_0_26169734_20841\Main.java:4: 错误: 需要class, interface或enum
struct Node;
^
0_0_26169734_20841\Main.java:5: 错误: 需要class, interface或enum
Node* null;
^
0_0_26169734_20841\Main.java:6: 错误: 需要class, interface或enum
struct Node
^
0_0_26169734_20841\Main.java:9: 错误: 需要class, interface或enum
int size;
^
0_0_26169734_20841\Main.java:10: 错误: 需要class, interface或enum
int rev;
^
0_0_26169734_20841\Main.java:11: 错误: 需要class, interface或enum
Node()
^
0_0_26169734_20841\Main.java:14: 错误: 需要class, interface或enum
rev = 0;
^
0_0_26169734_20841\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:20: 错误: 需要class, interface或enum
size = ch[0]->size + ch[1]->size + 1;
^
0_0_26169734_20841\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:25: 错误: 需要class, interface或enum
p->fa = this;
^
0_0_26169734_20841\Main.java:26: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:30: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:34: 错误: 需要class, interface或enum
ch[0] = ch[1] = fa = null;
^
0_0_26169734_20841\Main.java:35: 错误: 需要class, interface或enum
rev = 0;
^
0_0_26169734_20841\Main.java:36: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:41: 错误: 需要class, interface或enum
swap(ch[0], ch[1]);
^
0_0_26169734_20841\Main.java:42: 错误: 需要class, interface或enum
rev ^= 1;
^
0_0_26169734_20841\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:48: 错误: 需要class, interface或enum
if (rev)
^
0_0_26169734_20841\Main.java:51: 错误: 需要class, interface或enum
ch[1]->update_Rev();
^
0_0_26169734_20841\Main.java:52: 错误: 需要class, interface或enum
rev = 0;
^
0_0_26169734_20841\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:60: 错误: 需要class, interface或enum
inline void rotate(Node* x)
^
0_0_26169734_20841\Main.java:63: 错误: 需要class, interface或enum
f->push_down();
^
0_0_26169734_20841\Main.java:64: 错误: 需要class, interface或enum
x->push_down();
^
0_0_26169734_20841\Main.java:65: 错误: 需要class, interface或enum
int c = x->d(), cc = f->d();
^
0_0_26169734_20841\Main.java:66: 错误: 需要class, interface或enum
f->setc(x->ch[!c], c);
^
0_0_26169734_20841\Main.java:67: 错误: 需要class, interface或enum
x->setc(f, !c);
^
0_0_26169734_20841\Main.java:68: 错误: 需要class, interface或enum
if (ff->ch[cc] == f)
^
0_0_26169734_20841\Main.java:70: 错误: 需要class, interface或enum
else
^
0_0_26169734_20841\Main.java:72: 错误: 需要class, interface或enum
f->push_up();
^
0_0_26169734_20841\Main.java:73: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:80: 错误: 需要class, interface或enum
else
^
0_0_26169734_20841\Main.java:83: 错误: 需要class, interface或enum
x->fa->push_down();
^
0_0_26169734_20841\Main.java:84: 错误: 需要class, interface或enum
x->push_down();
^
0_0_26169734_20841\Main.java:85: 错误: 需要class, interface或enum
bool f = x->fa->d();
^
0_0_26169734_20841\Main.java:86: 错误: 需要class, interface或enum
x->d() == f ? rotate(x->fa) : rotate(x);
^
0_0_26169734_20841\Main.java:87: 错误: 需要class, interface或enum
rotate(x);
^
0_0_26169734_20841\Main.java:88: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:91: 错误: 需要class, interface或enum
if (goal == null)
^
0_0_26169734_20841\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:97: 错误: 需要class, interface或enum
x->push_down();
^
0_0_26169734_20841\Main.java:98: 错误: 需要class, interface或enum
while (x->ch[0]->size + 1 != k)
^
0_0_26169734_20841\Main.java:102: 错误: 需要class, interface或enum
else
^
0_0_26169734_20841\Main.java:105: 错误: 需要class, interface或enum
x = x->ch[1];
^
0_0_26169734_20841\Main.java:106: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:108: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:110: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:114: 错误: 需要class, interface或enum
p = p->ch[1];
^
0_0_26169734_20841\Main.java:115: 错误: 需要class, interface或enum
p->push_down();
^
0_0_26169734_20841\Main.java:116: 错误: 需要class, interface或enum
while (p->ch[0] != null)
^
0_0_26169734_20841\Main.java:119: 错误: 需要class, interface或enum
p->push_down();
^
0_0_26169734_20841\Main.java:120: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:122: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:124: 错误: 需要class, interface或enum
Node *node[MAXN];
^
0_0_26169734_20841\Main.java:125: 错误: 需要class, interface或enum
Node *root;
^
0_0_26169734_20841\Main.java:126: 错误: 需要class, interface或enum
void build(Node* &x, int l, int r, Node* fa)
^
0_0_26169734_20841\Main.java:130: 错误: 需要class, interface或enum
int mid = (l + r) / 2;
^
0_0_26169734_20841\Main.java:131: 错误: 需要class, interface或enum
x = tail++;
^
0_0_26169734_20841\Main.java:132: 错误: 需要class, interface或enum
x->clear();
^
0_0_26169734_20841\Main.java:133: 错误: 需要class, interface或enum
x->fa = fa;
^
0_0_26169734_20841\Main.java:134: 错误: 需要class, interface或enum
node[mid] = x;
^
0_0_26169734_20841\Main.java:135: 错误: 需要class, interface或enum
build(x->ch[0], l, mid - 1, x);
^
0_0_26169734_20841\Main.java:136: 错误: 需要class, interface或enum
build(x->ch[1], mid + 1, r, x);
^
0_0_26169734_20841\Main.java:137: 错误: 需要class, interface或enum
x->push_up();
^
0_0_26169734_20841\Main.java:138: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:142: 错误: 需要class, interface或enum
null = tail++;
^
0_0_26169734_20841\Main.java:143: 错误: 需要class, interface或enum
null->fa = null->ch[0] = null->ch[1] = null;
^
0_0_26169734_20841\Main.java:144: 错误: 需要class, interface或enum
null->size = 0;
^
0_0_26169734_20841\Main.java:145: 错误: 需要class, interface或enum
null->rev = 0;
^
0_0_26169734_20841\Main.java:146: 错误: 需要class, interface或enum
Node* p = tail++;
^
0_0_26169734_20841\Main.java:147: 错误: 需要class, interface或enum
p->clear();
^
0_0_26169734_20841\Main.java:148: 错误: 需要class, interface或enum
root = p;
^
0_0_26169734_20841\Main.java:149: 错误: 需要class, interface或enum
p = tail++;
^
0_0_26169734_20841\Main.java:150: 错误: 需要class, interface或enum
p->clear();
^
0_0_26169734_20841\Main.java:151: 错误: 需要class, interface或enum
root->setc(p, 1);
^
0_0_26169734_20841\Main.java:152: 错误: 需要class, interface或enum
build(root->ch[1]->ch[0], 1, n, root->ch[1]);
^
0_0_26169734_20841\Main.java:153: 错误: 需要class, interface或enum
root->ch[1]->push_down();
^
0_0_26169734_20841\Main.java:154: 错误: 需要class, interface或enum
root->push_down();
^
0_0_26169734_20841\Main.java:155: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:157: 错误: 需要class, interface或enum
int b[MAXN];
^
0_0_26169734_20841\Main.java:158: 错误: 需要class, interface或enum
bool cmp(int i, int j)
^
0_0_26169734_20841\Main.java:162: 错误: 需要class, interface或enum
else
^
0_0_26169734_20841\Main.java:164: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:168: 错误: 需要class, interface或enum
while (scanf("%d", &n) == 1 && n)
^
0_0_26169734_20841\Main.java:170: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26169734_20841\Main.java:170: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26169734_20841\Main.java:173: 错误: 需要class, interface或enum
b[i] = i;
^
0_0_26169734_20841\Main.java:174: 错误: 需要class, interface或enum
}
^
0_0_26169734_20841\Main.java:176: 错误: 需要class, interface或enum
sort(b + 1, b + n + 1, cmp);
^
0_0_26169734_20841\Main.java:177: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26169734_20841\Main.java:177: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26169734_20841\Main.java:177: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++)
^
0_0_26169734_20841\Main.java:180: 错误: 需要class, interface或enum
int sz = root->ch[0]->size;
^
0_0_26169734_20841\Main.java:181: 错误: 需要class, interface或enum
printf("%d", root->ch[0]->size);
^
100 个错误
|