/ WHOJ /

记录详情

Wrong Answer

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 'long long int query(int, int, int, int, int)':
foo.cc:66:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   66 |     int mid=l+r>>1;
      |             ~^~
foo.cc: In function 'int main()':
foo.cc:109:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  109 |         else if(s[0]='B')
      |                 ~~~~^~~~
foo.cc:87:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   87 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~
Found 6 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Wrong Answer Read 0, expect 212160. 3ms 384.0 KiB
#5 Accepted 5ms 896.0 KiB
#6 Accepted 3ms 384.0 KiB

信息

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