记录详情

Accepted

/in/foo.cc: In function 'void in(int&)':
/in/foo.cc:3: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:4: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:4: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:5: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 update(int, int, int, int, int)':
/in/foo.cc:7:10: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 int mid=l+r>>1;if(x<=mid)update(k<<1,l,mid,x,v);else update(k<<1|1,mid+1,r,x,v);
         ~^~
/in/foo.cc: In function 'll query(int, int, int, int, int)':
/in/foo.cc:10:10: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 int mid=l+r>>1;if(x<=mid)res=query(k<<1,l,mid,x,y);
         ~^~
/in/foo.cc:11: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:11: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;}
                                         ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 200.0 KiB
#2 Accepted 1ms 200.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 1ms 204.0 KiB
#5 Accepted 2ms 208.0 KiB
#6 Accepted 9ms 332.0 KiB
#7 Accepted 8ms 456.0 KiB
#8 Accepted 43ms 2.824 MiB
#9 Accepted 37ms 708.0 KiB
#10 Accepted 212ms 2.195 MiB

信息

递交者
类型
递交
题目
区间和
题目数据
下载
语言
C++
递交时间
2020-01-31 11:15:30
评测时间
2020-01-31 11:15:30
评测机
分数
100
总耗时
319ms
峰值内存
2.824 MiB