记录详情

Accepted

foo.cc: In function 'void build(int, int, int)':
foo.cc:49:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   49 |     int mid = l + r >> 1;
      |               ~~^~~
foo.cc: In function 'void update(int, int, int, long long int)':
foo.cc:66:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   66 |     int mid = tree[rt].l + tree[rt].r >> 1;
      |               ~~~~~~~~~~~^~~~~~~~~~~~
foo.cc: In function 'void update1(int, int, long long int)':
foo.cc:78:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   78 |     int mid = tree[rt].l + tree[rt].r >> 1;
      |               ~~~~~~~~~~~^~~~~~~~~~~~
foo.cc: In function 'long long int query(int, int)':
foo.cc:87:26: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   87 |     int mid = tree[rt].l + tree[rt].r >> 1;
      |               ~~~~~~~~~~~^~~~~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:94:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   94 |     scanf("%d%d", &n, &q);
      |     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:96:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   96 |         scanf("%d", &x[i]);
      |         ~~~~~^~~~~~~~~~~~~
foo.cc:101:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  101 |         scanf("%d", &op);
      |         ~~~~~^~~~~~~~~~~
foo.cc:103:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  103 |             scanf("%d%d%lld", &l, &r, &x);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:106:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  106 |             scanf("%d%lld", &l, &x);
      |             ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:109:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  109 |             scanf("%lld", &x);
      |             ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 5ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 4ms 640.0 KiB
#5 Accepted 3ms 512.0 KiB
#6 Accepted 4ms 512.0 KiB
#7 Accepted 3ms 512.0 KiB
#8 Accepted 2254ms 41.742 MiB
#9 Accepted 787ms 42.617 MiB
#10 Accepted 2260ms 41.742 MiB

信息

递交者
类型
递交
题目
P1384 Problem C. Segtree Master
比赛
2022年暑期算法队集训赛
语言
C++
递交时间
2022-07-08 11:04:17
评测时间
2022-07-08 11:04:17
评测机
分数
100
总耗时
5333ms
峰值内存
42.617 MiB