/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'll fast_IO::read()':
/in/foo.cc:16:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (c == EOF)return c; if (c == '-')flag = true; else x = c ^ 48;
   ^~
/in/foo.cc:16:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if (c == EOF)return c; if (c == '-')flag = true; else x = c ^ 48;
                          ^~
/in/foo.cc:19:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if (flag)return -x; return x;
   ^~
/in/foo.cc:19:23: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if (flag)return -x; return x;
                       ^~~~~~
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:57:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  rg int mid = l + rr >> 1, now = id[mid];
               ~~^~~~
/in/foo.cc: In function 'void _rotate(int, int&)':
/in/foo.cc:73:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (c[x][w ^ 1])fa[c[x][w ^ 1]] = f; c[f][w] = c[x][w ^ 1];
  ^~
/in/foo.cc:73:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (c[x][w ^ 1])fa[c[x][w ^ 1]] = f; c[f][w] = c[x][w ^ 1];
                                       ^
/in/foo.cc: In function 'void _insert(int, int)':
/in/foo.cc:130:22: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  rg int rrt = id[num + 1 >> 1];
                  ~~~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:141:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (rg int i = 1; i <= n + 2; ++i)id[i] = i; build(1, n + 2, 0);
  ^~~
/in/foo.cc:141:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (rg int i = 1; i <= n + 2; ++i)id[i] = i; build(1, n + 2, 0);
                                                ^~~~~
/in/foo.cc:142:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  rt = n + 3 >> 1; tot = n + 2;
       ~~^~~
# 状态 耗时 内存占用
#1 Accepted 15ms 636.0 KiB
#2 Accepted 15ms 832.0 KiB
#3 Accepted 205ms 1.168 MiB
#4 Accepted 53ms 1.137 MiB
#5 Accepted 157ms 1.82 MiB
#6 Accepted 323ms 4.004 MiB
#7 Accepted 699ms 4.27 MiB
#8 Accepted 683ms 19.324 MiB
#9 Accepted 430ms 20.016 MiB
#10 Accepted 389ms 21.156 MiB

信息

递交者
类型
递交
题目
P1835 维护数列
语言
C++
递交时间
2019-03-25 22:09:14
评测时间
2019-03-25 22:09:14
评测机
分数
100
总耗时
2973ms
峰值内存
21.156 MiB