/ 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:38: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  if(l==r){du[l]=inf;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 37ms 1.609 MiB
#2 Accepted 39ms 2.07 MiB
#3 Accepted 41ms 1.77 MiB
#4 Accepted 44ms 1.742 MiB
#5 Accepted 54ms 1.945 MiB
#6 Accepted 59ms 2.355 MiB
#7 Accepted 64ms 2.238 MiB
#8 Accepted 73ms 2.516 MiB
#9 Accepted 82ms 2.484 MiB
#10 Accepted 88ms 2.602 MiB

信息

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