记录详情

Wrong Answer

foo.cc: In member function 'void tree::build(int, int, int)':
foo.cc:19:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   19 |         int mid = L + R >> 1;
      |                   ~~^~~
foo.cc: In member function 'void tree::modify(int, int, int, int)':
foo.cc:29:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   29 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In member function 'void tree::query(int, int)':
foo.cc:44:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   44 |         int mid = nd[p].L + nd[p].R >> 1;
      |                   ~~~~~~~~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:53:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |     scanf("%d %d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:62:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   62 |         scanf("%d", &op);
      |         ~~~~~^~~~~~~~~~~
foo.cc:66:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   66 |             scanf("%d %d %d", &l, &r, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:70:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   70 |             scanf("%d %d", &x, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:77:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   77 |             scanf("%d", &x);
      |             ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1362592987, expect 21764578. 4ms 384.0 KiB
#2 Wrong Answer Read 815882704, expect 1666413184. 3ms 384.0 KiB
#3 Wrong Answer Read 51108017, expect 46932990. 4ms 384.0 KiB
#4 Wrong Answer Read 1900932891, expect 14876. 5ms 384.0 KiB
#5 Wrong Answer Read 302692308, expect 719387392. 7ms 384.0 KiB
#6 Wrong Answer Read 248693701, expect 11276342. 3ms 384.0 KiB
#7 Wrong Answer Read 1254119090, expect 75642782. 5ms 384.0 KiB
#8 Wrong Answer Read 2036273188, expect 1945048095. 645ms 17.117 MiB
#9 Wrong Answer Read 0, expect 1065560466. 651ms 17.117 MiB
#10 Wrong Answer Read 1248185809, expect 65. 788ms 17.117 MiB

信息

递交者
类型
递交
题目
P1384 Problem C. Segtree Master
语言
C++
递交时间
2022-07-09 16:57:59
评测时间
2022-07-09 16:57:59
评测机
分数
0
总耗时
2121ms
峰值内存
17.117 MiB