System Error

/in/foo.cc: In function 'void in(int&)':
/in/foo.cc:5:44: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
 void in(int &x){char ch=getchar();int fl=1;while((ch<'0'||ch>'9')&&ch!='-')
                                            ^~~~~
/in/foo.cc:6:14: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
 ch=getchar();if(ch=='-'){ch=getchar();fl=-1;}for(x=0;ch>='0'&&ch<='9';ch=getchar())
              ^~
/in/foo.cc:6:46: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 ch=getchar();if(ch=='-'){ch=getchar();fl=-1;}for(x=0;ch>='0'&&ch<='9';ch=getchar())
                                              ^~~
/in/foo.cc:7:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
 x=(x<<3)+(x<<1)+(ch^'0');x*=fl;}
                          ^
/in/foo.cc: In function 'void pushdown(int, int, int)':
/in/foo.cc:9:61: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 void pushdown(int k,int l,int r){if(!add[k])return;int mid=l+r>>1;
                                                            ~^~
/in/foo.cc: In function 'void update(int, int, int, int, int, int)':
/in/foo.cc:12:46: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 if(x<=l&&r<=y){jia(k,l,r,v);return;}int mid=l+r>>1;
                                             ~^~
/in/foo.cc:13:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(x<=mid)update(k<<1,l,mid,x,y,v);if(mid<y)update(k<<1|1,mid+1,r,x,y,v);}
 ^~
/in/foo.cc:13:36: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
 if(x<=mid)update(k<<1,l,mid,x,y,v);if(mid<y)update(k<<1|1,mid+1,r,x,y,v);}
                                    ^~
/in/foo.cc: In function 'll query(int, int, int, int, int)':
/in/foo.cc:15:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 ll res=0;int mid=l+r>>1;pushdown(k,l,r);if(x<=mid)res=query(k<<1,l,mid,x,y);
                  ~^~
/in/foo.cc:16:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 if(mid<y)res+=query(k<<1|1,mid+1,r,x,y);return res;}
 ^~
/in/foo.cc:16:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
 if(mid<y)res+=query(k<<1|1,mid+1,r,x,y);return res;}
                                         ^~~~~~
VJ4Error('ProblemDataNotFoundError', '题目 5c28fb55f413624d6550c3b1 的数据未找到。', 'ybttg', '5c28fb55f413624d6550c3b1')

信息

递交者
类型
递交
题目
「一本通 4.3 例 2」A Simple Problem with Integers
语言
C++
递交时间
2020-01-31 09:51:46
评测时间
2020-01-31 09:51:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes