0_0_18476265_26851.cpp:296:1: error: missing terminating " character
cout<<v<<"
^
0_0_18476265_26851.cpp:297:1: error: missing terminating " character
";
^
0_0_18476265_26851.cpp:11:15: error: two or more data types in declaration of 'zabs'
int zabs(int x) {
^
0_0_18476265_26851.cpp:22:21: error: 'key' does not name a type
struct node { typec key; int l, r, f, dist; } tr[N];
^
0_0_18476265_26851.cpp: In function 'int merge(int, int)':
0_0_18476265_26851.cpp:53:9: error: 'struct node' has no member named 'key'
(tr[rx].key < tr[ry].key) swap(rx, ry);
^
0_0_18476265_26851.cpp:53:22: error: 'struct node' has no member named 'key'
(tr[rx].key < tr[ry].key) swap(rx, ry);
^
0_0_18476265_26851.cpp: At global scope:
0_0_18476265_26851.cpp:78:22: error: 'key' has not been declared
int ins(int i, typec key, int root) {
^
0_0_18476265_26851.cpp: In function 'int ins(int, int, int)':
0_0_18476265_26851.cpp:80:11: error: 'struct node' has no member named 'key'
tr[i].key =
^
0_0_18476265_26851.cpp:81:1: error: 'key' was not declared in this scope
key;
^
0_0_18476265_26851.cpp: At global scope:
0_0_18476265_26851.cpp:179:22: error: 'val' has not been declared
int add(int i, typec val) {
^
0_0_18476265_26851.cpp: In function 'int add(int, int)':
0_0_18476265_26851.cpp:189:7: error: 'struct node' has no member named 'key'
tr[i].key += val;
^
0_0_18476265_26851.cpp:189:14: error: 'val' was not declared in this scope
tr[i].key += val;
^
0_0_18476265_26851.cpp:196:11: error: 'key' was not declared in this scope
typec key =
^
0_0_18476265_26851.cpp:197:7: error: 'struct node' has no member named 'key'
tr[i].key + val;
^
0_0_18476265_26851.cpp:197:13: error: 'val' was not declared in this scope
tr[i].key + val;
^
0_0_18476265_26851.cpp: In function 'void init(int)':
0_0_18476265_26851.cpp:217:7: error: 'struct node' has no member named 'key'
tr[i].key = ary[i];
^
0_0_18476265_26851.cpp: In function 'void solve(int)':
0_0_18476265_26851.cpp:247:14: error: 'struct node' has no member named 'key'
top(tree[m]).key <= top(tree[m-1]).key) {
^
0_0_18476265_26851.cpp:247:36: error: 'struct node' has no member named 'key'
top(tree[m]).key <= top(tree[m-1]).key) {
^
0_0_18476265_26851.cpp:290:22: error: 'struct node' has no member named 'key'
int v = top(tree[i]).key;
^
0_0_18476265_26851.cpp:300:25: error: 'zabs' was not declared in this scope
res += zabs(ary[k++] - v);
^
|