/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:18:35: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  if(l==r){t[x]=l;return;}int mid=l+r>>1;
                                  ~^~
/in/foo.cc: In function 'void modify(int, int, int, int)':
/in/foo.cc:23:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(l==r)return;int mid=l+r>>1;
  ^~
/in/foo.cc:23:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(l==r)return;int mid=l+r>>1;
                 ^~~
/in/foo.cc:23:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  if(l==r)return;int mid=l+r>>1;
                         ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:52:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int x:P)printf("%d ",x);puts("");
   ^~~
/in/foo.cc:52:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int x:P)printf("%d ",x);puts("");
                               ^~~~
/in/foo.cc:54:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int x:Q)printf("%d ",x);puts("");
   ^~~
/in/foo.cc:54:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   for(int x:Q)printf("%d ",x);puts("");
                               ^~~~
# 状态 耗时 内存占用
#1 Accepted 63ms 1.621 MiB
#2 Accepted 69ms 2.066 MiB
#3 Accepted 70ms 1.762 MiB
#4 Accepted 73ms 1.762 MiB
#5 Accepted 87ms 2.023 MiB
#6 Accepted 95ms 2.293 MiB
#7 Accepted 104ms 2.242 MiB
#8 Accepted 114ms 2.5 MiB
#9 Accepted 113ms 2.406 MiB
#10 Accepted 130ms 2.605 MiB

信息

递交者
类型
递交
题目
P2054 热闹的聚会与尴尬的聚会
语言
C++
递交时间
2019-05-08 23:01:48
评测时间
2019-05-08 23:01:48
评测机
分数
100
总耗时
922ms
峰值内存
2.605 MiB