0_0_36224403_3006.cpp:19:11: error: conflicting declaration 'treeee tr [400040]'
}tr[N << 2];
^
0_0_36224403_3006.cpp:7:22: note: previous declaration as 'int tr [200010]'
int n, k, m, ans[N], tr[M], res[N], tot[N];
^
0_0_36224403_3006.cpp: In function 'void build(int, int, int)':
0_0_36224403_3006.cpp:22:17: error: request for member 'val' in 'tr[rt]', which is of non-class type 'int'
return tr[rt].val = tr[rt].sum = 0, void();
^
0_0_36224403_3006.cpp:22:30: error: request for member 'sum' in 'tr[rt]', which is of non-class type 'int'
return tr[rt].val = tr[rt].sum = 0, void();
^
0_0_36224403_3006.cpp:22:44: error: return-statement with a value, in function returning 'void' [-fpermissive]
return tr[rt].val = tr[rt].sum = 0, void();
^
0_0_36224403_3006.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_36224403_3006.cpp:30:19: error: request for member 'sum' in 'tr[rt]', which is of non-class type 'int'
if(sum > tr[rt].sum){
^
0_0_36224403_3006.cpp:31:11: error: request for member 'val' in 'tr[rt]', which is of non-class type 'int'
tr[rt].val = val;
^
0_0_36224403_3006.cpp:32:11: error: request for member 'sum' in 'tr[rt]', which is of non-class type 'int'
tr[rt].sum = sum;
^
0_0_36224403_3006.cpp:33:27: error: request for member 'sum' in 'tr[rt]', which is of non-class type 'int'
} else if(sum == tr[rt].sum){
^
0_0_36224403_3006.cpp:34:11: error: request for member 'val' in 'tr[rt]', which is of non-class type 'int'
tr[rt].val += val;
^
0_0_36224403_3006.cpp:39:48: error: too few arguments to function 'void update(int, int, int, int, int, int)'
if(pos <= mid) update(ls(rt), l, mid, pos, val);
^
0_0_36224403_3006.cpp:28:6: note: declared here
void update(int rt, int l, int r, int pos, int sum, int val){
^
0_0_36224403_3006.cpp:40:51: error: too few arguments to function 'void update(int, int, int, int, int, int)'
if(pos > mid) update(rs(rt), mid + 1, r, pos, val);
^
0_0_36224403_3006.cpp:28:6: note: declared here
void update(int rt, int l, int r, int pos, int sum, int val){
^
0_0_36224403_3006.cpp: In function 'treeee query(int, int, int, int, int)':
0_0_36224403_3006.cpp:45:35: error: could not convert 'tr[rt]' from 'int' to 'treeee'
if(L <= l && R >= r) return tr[rt];
^
0_0_36224403_3006.cpp: In function 'void lshx()':
0_0_36224403_3006.cpp:60:3: error: 'qwq' was not declared in this scope
qwq[++len] = flo[i].x;
^
0_0_36224403_3006.cpp:61:7: error: 'qwq' was not declared in this scope
sort(qwq + 1, qwq + n + 1);
^
0_0_36224403_3006.cpp: In function 'void lshy()':
0_0_36224403_3006.cpp:70:3: error: 'qwq' was not declared in this scope
qwq[++len] = flo[i].y;
^
0_0_36224403_3006.cpp:71:7: error: 'qwq' was not declared in this scope
sort(qwq + 1, qwq + n + 1);
^
0_0_36224403_3006.cpp: In function 'void lshz()':
0_0_36224403_3006.cpp:80:3: error: 'qwq' was not declared in this scope
qwq[++len] = flo[i].z;
^
0_0_36224403_3006.cpp:81:7: error: 'qwq' was not declared in this scope
sort(qwq + 1, qwq + n + 1);
^
0_0_36224403_3006.cpp: In function 'void cdq(int, int)':
0_0_36224403_3006.cpp:102:34: error: 'fas' was not declared in this scope
ans[flo[r].id] = ze.sum + 1, fas[flo[r].id] = ze.val * flo[r].val;
^
0_0_36224403_3006.cpp:104:5: error: 'fas' was not declared in this scope
fas[flo[r].id] += ze.val * flo[r].val;
^
0_0_36224403_3006.cpp:105:42: error: 'fas' was not declared in this scope
flo[r].f = ans[flo[r].id]; flo[r].g = fas[flo[r].id];
^
0_0_36224403_3006.cpp:110:40: error: too few arguments to function 'void update(int, int, int, int, int, int)'
update(1, 1, n, flo[l].z, -flo[l].val);
^
0_0_36224403_3006.cpp:28:6: note: declared here
void update(int rt, int l, int r, int pos, int sum, int val){
^
0_0_36224403_3006.cpp: In function 'int main()':
0_0_36224403_3006.cpp:138:28: error: 'f' was not declared in this scope
if(ans[i] == mx) res += f[i];
^
|