/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:12:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=tr[id].l+tr[id].r>>1;
          ~~~~~~~~^~~~~~~~~
/in/foo.cc: In function 'void insert(int, int, int)':
/in/foo.cc:29:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int mid=tr[id].l+tr[id].r>>1;
          ~~~~~~~~^~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:60:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(int i=1;i<=n;i++)
  ^~~
/in/foo.cc:63:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   sort(t+1,t+n+1);
   ^~~~
/in/foo.cc: In function 'int query(int, int, int)':
/in/foo.cc:53:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 6ms 6.25 MiB
#2 Accepted 7ms 6.5 MiB
#3 Accepted 14ms 8.5 MiB
#4 Accepted 17ms 11.0 MiB
#5 Accepted 22ms 11.367 MiB
#6 Accepted 56ms 13.875 MiB
#7 Accepted 104ms 22.125 MiB
#8 Accepted 246ms 36.75 MiB
#9 Accepted 314ms 49.125 MiB
#10 Accepted 291ms 44.625 MiB

信息

递交者
类型
递交
题目
P1081 野生动物园
语言
C++
递交时间
2017-11-09 19:42:48
评测时间
2017-11-09 19:42:48
评测机
分数
100
总耗时
1081ms
峰值内存
49.125 MiB