QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#214016 | #6435. Paimon Segment Tree | HuangHanSheng | Compile Error | / | / | C++20 | 3.1kb | 2023-10-14 16:55:15 | 2023-10-14 16:55:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void change(int, int, int, int, int)’: answer.code:78:41: error: ‘v’ was not declared in this scope 78 | if(L<=l&&r<=R)return tr[rt].upd(v); | ^ answer.code:81:39: error: ‘v’ was not declared in this scope 81 | if(L<=mid)change(ls,l,mid,L,R,v); | ^ answer.code:82:40: error: ‘v’ was not declared in this scope 82 | if(mid<R)change(rs,mid+1,r,L,R,v); | ^ answer.code: In function ‘int main()’: answer.code:125:37: error: too many arguments to function ‘void change(int, int, int, int, int)’ 125 | if(upd[i].l>1)change(1,1,n,1,upd[i].l-1,make_(0)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:76:13: note: declared here 76 | inline void change(int rt,int l,int r,int L,int R) | ^~~~~~ answer.code:126:23: error: too many arguments to function ‘void change(int, int, int, int, int)’ 126 | change(1,1,n,upd[i].l,upd[i].r,make_(upd[i].m)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:76:13: note: declared here 76 | inline void change(int rt,int l,int r,int L,int R) | ^~~~~~ answer.code:127:37: error: too many arguments to function ‘void change(int, int, int, int, int)’ 127 | if(upd[i].r<n)change(1,1,n,upd[i].r+1,n,make_(0)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:76:13: note: declared here 76 | inline void change(int rt,int l,int r,int L,int R) | ^~~~~~ answer.code:108:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 108 | scanf("%d%d%d",&n,&m,&q); | ~~~~~^~~~~~~~~~~~~~~~~~~ answer.code:109:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 109 | for(int i=1;i<=n;i++)scanf("%d",&a[i]),a[i]=add(a[i]+mod); | ~~~~~^~~~~~~~~~~~ answer.code:110:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 110 | for(int i=1;i<=m;i++)scanf("%d%d%d",&upd[i].l,&upd[i].r,&upd[i].m),upd[i].m=add(mod+upd[i].m); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:113:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 113 | scanf("%d%d%d%d",&l,&r,&x,&y); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~