0_0_14880414_28651.cpp:84:15: error: macro "clr" requires 2 arguments, but only 1 given
clr(son -1);
^
0_0_14880414_28651.cpp: In function 'void init()':
0_0_14880414_28651.cpp:84:5: error: 'clr' was not declared in this scope
clr(son -1);
^
0_0_14880414_28651.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_14880414_28651.cpp:166:17: error: too few arguments to function 'void push_down(int, int, int)'
push_down(rt);
^
0_0_14880414_28651.cpp:133:6: note: declared here
void push_down(int l, int r, int rt)
^
0_0_14880414_28651.cpp:168:34: error: too few arguments to function 'void update(int, int, int, int, int, int)'
if (L <= m) update(L, R, lson);
^
0_0_14880414_28651.cpp:158:6: note: declared here
void update(int L, int R, int cc, int l, int r, int rt)
^
0_0_14880414_28651.cpp:169:33: error: too few arguments to function 'void update(int, int, int, int, int, int)'
if (R > m) update(L, R, rson);
^
0_0_14880414_28651.cpp:158:6: note: declared here
void update(int L, int R, int cc, int l, int r, int rt)
^
0_0_14880414_28651.cpp: In function 'void query(int, int, int, int, int)':
0_0_14880414_28651.cpp:175:22: error: return-statement with a value, in function returning 'void' [-fpermissive]
return sum[rt];
^
0_0_14880414_28651.cpp:176:17: error: too few arguments to function 'void push_down(int, int, int)'
push_down(rt);
^
0_0_14880414_28651.cpp:133:6: note: declared here
void push_down(int l, int r, int rt)
^
0_0_14880414_28651.cpp:179:20: error: void value not ignored as it ought to be
if (L <= m) v0 = query(L, R, lson);
^
0_0_14880414_28651.cpp:180:19: error: void value not ignored as it ought to be
if (R > m) v1 = query(L, R, rson);
^
0_0_14880414_28651.cpp:182:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
return v0 + v1;
^
0_0_14880414_28651.cpp: In function 'void Change(int, int, int)':
0_0_14880414_28651.cpp:195:32: error: too few arguments to function 'void update(int, int, int, int, int, int)'
update(p[f1], p[u], val);
^
0_0_14880414_28651.cpp:158:6: note: declared here
void update(int L, int R, int cc, int l, int r, int rt)
^
0_0_14880414_28651.cpp:200:18: error: 'add' was not declared in this scope
add(p[u], val);
^
0_0_14880414_28651.cpp: In function 'int get_sum(int, int)':
0_0_14880414_28651.cpp:218:24: error: 'sum' cannot be used as a function
tmp += sum(p[u]) - sum(p[f1]-1);
^
0_0_14880414_28651.cpp:218:39: error: 'sum' cannot be used as a function
tmp += sum(p[u]) - sum(p[f1]-1);
^
0_0_14880414_28651.cpp:223:20: error: 'sum' cannot be used as a function
tmp += sum(p[v]) - sum(p[u]-1);
^
0_0_14880414_28651.cpp:223:34: error: 'sum' cannot be used as a function
tmp += sum(p[v]) - sum(p[u]-1);
^
0_0_14880414_28651.cpp:226:20: error: 'sum' cannot be used as a function
tmp -= sum(p[u]) - sum(p[u]-1);
^
0_0_14880414_28651.cpp:226:34: error: 'sum' cannot be used as a function
tmp -= sum(p[u]) - sum(p[u]-1);
^
0_0_14880414_28651.cpp: In function 'int main()':
0_0_14880414_28651.cpp:260:27: error: 'unite' was not declared in this scope
unite(u, v);
^
|