/ Vijos /

记录详情

Accepted

foo.cc: In member function 'void prt::build(int&, int, int)':
foo.cc:19:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   19 |     int m=l+r>>1;
      |           ~^~
foo.cc: In member function 'void prt::ins(int&, int, int, int, int, node)':
foo.cc:26:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   26 |     int m=l+r>>1;
      |           ~^~
foo.cc: In member function 'node prt::ask(int, int, int, int, int)':
foo.cc:32:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   32 |     int m=l+r>>1;
      |           ~^~
foo.cc: In function 'void ST()':
foo.cc:57:52: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   57 |             st[k][i]=gmd(st[k-1][i],st[k-1][i+(1<<k-1)]);
      |                                                   ~^~
foo.cc: In function 'void solve()':
foo.cc:116:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  116 |     scanf("%d%d%u%u%u%d",&n,&p,&SA,&SB,&SC,&q);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:123:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  123 |         scanf("%d%d%d",&p,&x,&y),
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:131:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  131 |     int T;scanf("%d",&T);
      |           ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2640ms 113.523 MiB
#2 Accepted 2804ms 110.238 MiB
#3 Accepted 2428ms 106.977 MiB

信息

递交者
类型
递交
题目
P2048 原题识别
语言
C++
递交时间
2022-01-13 18:32:10
评测时间
2022-01-13 19:00:57
评测机
分数
100
总耗时
7873ms
峰值内存
113.523 MiB