记录详情

Wrong Answer

foo.cc: In member function 'void tree::build(int, int, int)':
foo.cc:18:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   18 |         int mid = L + R >> 1;
      |                   ~~^~~
foo.cc: In member function 'void tree::modify(int, int, int, int)':
foo.cc:28:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   28 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In member function 'void tree::query(int, int)':
foo.cc:43:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   43 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:63:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   63 |     scanf("%d %d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:71:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   71 |         scanf("%d", &op);
      |         ~~~~~^~~~~~~~~~~
foo.cc:75:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   75 |             scanf("%d %d %d", &l, &r, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:79:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   79 |             scanf("%d %d", &x, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:85:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   85 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 12, expect 0. 6ms 384.0 KiB
#2 Wrong Answer Read 413934, expect 216361655. 5ms 384.0 KiB
#3 Wrong Answer Read 2, expect 0. 11ms 384.0 KiB
#4 Wrong Answer Read 728120, expect 0. 8ms 384.0 KiB
#5 Wrong Answer Read 0, expect 15552315. 7ms 384.0 KiB
#6 Wrong Answer Read 2042382, expect 934494145. 6ms 384.0 KiB
#7 Wrong Answer Read 7891, expect 492248. 7ms 384.0 KiB
#8 Wrong Answer Read 586242351, expect 0. 630ms 15.617 MiB
#9 Accepted 700ms 15.742 MiB
#10 Wrong Answer Read 777931130, expect 0. 855ms 15.617 MiB

信息

递交者
类型
递交
题目
P1384 Problem C. Segtree Master
语言
C++
递交时间
2022-07-09 13:02:28
评测时间
2022-07-09 13:02:28
评测机
分数
10
总耗时
2239ms
峰值内存
15.742 MiB