/ WHOJ /

记录详情

Accepted

foo.cc: In function 'void maketree(int&, int, int)':
foo.cc:38:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   38 |     int mid=l+r>>1;
      |             ~^~
foo.cc: In function 'void update(int&, int, int, int, int, int, int)':
foo.cc:53:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   53 |     int mid=l+r>>1;
      |             ~^~
foo.cc: In function 'int main()':
foo.cc:112:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  112 |         else if(s[0]='B')
      |                 ~~~~^~~~
foo.cc:90:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   90 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~
Found 6 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 5ms 768.0 KiB
#6 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1178 【模板】可持续化线段树 1
题目数据
下载
语言
C++
递交时间
2022-06-03 19:45:43
评测时间
2022-06-03 19:45:43
评测机
分数
100
总耗时
18ms
峰值内存
768.0 KiB