/ Vijos /

记录详情

Accepted

foo.cc: In function 'int build(int, int)':
foo.cc:18:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
foo.cc: In function 'int update(int, int, int, int)':
foo.cc:29:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1;
               ~~^~~
foo.cc: In function 'int query(int, int, int, int, int)':
foo.cc:38:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid = l + r >> 1,x = sum[ls[v]] - sum[ls[u]];//通过区间减法得到左儿子的信息
               ~~^~~
foo.cc: In function 'void init()':
foo.cc:48:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&m);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:50:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",a + i);
         ~~~~~^~~~~~~~~~~~
foo.cc: In function 'void work()':
foo.cc:63:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d",&l,&r,&k);
         ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 676.0 KiB
#2 Accepted 1ms 808.0 KiB
#3 Accepted 3ms 1.609 MiB
#4 Accepted 7ms 2.262 MiB
#5 Accepted 8ms 2.648 MiB
#6 Accepted 40ms 5.031 MiB
#7 Accepted 106ms 9.75 MiB
#8 Accepted 250ms 19.832 MiB
#9 Accepted 322ms 25.043 MiB
#10 Accepted 312ms 25.027 MiB

信息

递交者
类型
递交
题目
P1081 野生动物园
语言
C++
递交时间
2021-08-01 23:54:36
评测时间
2021-08-01 23:54:36
评测机
分数
100
总耗时
1055ms
峰值内存
25.043 MiB