/ Vijos /

记录详情

Accepted

foo.cc: In member function 'void prt::build(int&, int, int)':
foo.cc:19:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     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]
     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]
     int m=l+r>>1;
           ~^~
foo.cc: In function 'void ST()':
foo.cc:57:52: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
             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]
     scanf("%d%d%u%u%u%d",&n,&p,&SA,&SB,&SC,&q);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:123:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d",&p,&x,&y),
         ~~~~~~~~~~~~~~~~~~~~~~~~^~
         printf("%lld\n",p==1?ask1(x,y):ask2(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]
     int T;scanf("%d",&T);
           ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2598ms 120.309 MiB
#2 Accepted 2915ms 116.434 MiB
#3 Accepted 3122ms 114.441 MiB

信息

递交者
类型
递交
题目
P2048 原题识别
语言
C++
递交时间
2021-08-06 09:10:07
评测时间
2021-08-06 09:10:07
评测机
分数
100
总耗时
8636ms
峰值内存
120.309 MiB