/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void clear(int)':
/in/foo.cc:15:130: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
 {lmax[pos] = rmax[pos] = smax[pos] = sum[pos] = key[pos] = size[pos] = ch[pos][1] = ch[pos][0] = fa[pos] = turn[pos] = same[pos] = cha[pos] = 0;}
                                                                                                                        ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:92:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(posgra)ch[posgra][ch[posgra][1] == posfa] = pos;fa[pos] = posgra;
  ^~
/in/foo.cc:92:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(posgra)ch[posgra][ch[posgra][1] == posfa] = pos;fa[pos] = posgra;
                                                     ^~
/in/foo.cc: In function 'void splay(int, int)':
/in/foo.cc:101:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(!tar)root = pos;return;
  ^~
/in/foo.cc:101:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(!tar)root = pos;return;
                     ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:116:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j = 0;j < strlen(read);j++)tmp += read[j];
                 ~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 22ms 34.297 MiB
#2 Accepted 18ms 36.266 MiB
#3 Accepted 265ms 95.516 MiB
#4 Accepted 61ms 42.773 MiB
#5 Accepted 139ms 54.141 MiB
#6 Accepted 239ms 81.172 MiB
#7 Accepted 456ms 96.055 MiB
#8 Accepted 477ms 96.125 MiB
#9 Accepted 314ms 94.641 MiB
#10 Accepted 382ms 95.594 MiB

信息

递交者
类型
递交
题目
P1835 维护数列
语言
C++
递交时间
2017-07-14 19:35:58
评测时间
2017-07-14 19:35:58
评测机
分数
100
总耗时
2377ms
峰值内存
96.125 MiB