Accepted

foo.cc: In function 'void build(int, int, int)':
foo.cc:17:10: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  ll mid=l+r>>1;
         ~^~
foo.cc: In function 'void update_sqrt(long long int, long long int, long long int)':
foo.cc:49:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  ll mid=tree[o].r+tree[o].l>>1;
         ~~~~~~~~~^~~~~~~~~~
foo.cc: In function 'long long int query(long long int, long long int, long long int)':
foo.cc:62:18: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  ll mid=tree[o].l+tree[o].r>>1;
         ~~~~~~~~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:73:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d%d",&z,&b,&c);
                  ~~      ^
foo.cc:73:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
foo.cc:73:26: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
foo.cc:68:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
  ~~~~~^~~~~~~~~~~
foo.cc:69:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=n;++i) scanf("%lld",&a[i]);
                        ~~~~~^~~~~~~~~~~~~~
foo.cc:71:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&m);
  ~~~~~^~~~~~~~~~~
foo.cc:73:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d%d",&z,&b,&c);
   ~~~~~^~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 326ms 11.223 MiB
#2 Accepted 331ms 11.453 MiB
#3 Accepted 97ms 5.824 MiB
#4 Accepted 412ms 11.223 MiB
#5 Accepted 330ms 11.219 MiB
#6 Accepted 2ms 356.0 KiB
#7 Accepted 2ms 368.0 KiB
#8 Accepted 27ms 1.75 MiB
#9 Accepted 65ms 11.211 MiB
#10 Accepted 302ms 11.219 MiB

信息

递交者
类型
递交
题目
「一本通 4.3 练习 2」花神游历各国
语言
C++
递交时间
2020-12-06 23:25:10
评测时间
2020-12-06 23:25:10
评测机
分数
100
总耗时
1897ms
峰值内存
11.453 MiB