/ Vijos /

记录详情

Accepted

foo.cc:8:15: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
    8 | int n,q,L[N<<2+5],R[N<<2+5],sum[N<<2+5];
      |              ~^~
foo.cc:8:25: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
    8 | int n,q,L[N<<2+5],R[N<<2+5],sum[N<<2+5];
      |                        ~^~
foo.cc:8:37: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
    8 | int n,q,L[N<<2+5],R[N<<2+5],sum[N<<2+5];
      |                                    ~^~
foo.cc: In function 'int main()':
foo.cc:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   42 |     scanf("%d%d",&n,&q);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:45:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   45 |         scanf("%d",&a[i]);
      |         ~~~~~^~~~~~~~~~~~
foo.cc:60:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   60 |         scanf("%d%d",&x,&y);
      |         ~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 4ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 41ms 504.0 KiB
#7 Accepted 58ms 384.0 KiB
#8 Accepted 106ms 384.0 KiB
#9 Accepted 333ms 464.0 KiB
#10 Accepted 152ms 384.0 KiB

信息

递交者
类型
递交
题目
P1459 车展
语言
C++
递交时间
2022-04-17 16:46:25
评测时间
2022-04-17 16:46:25
评测机
分数
100
总耗时
709ms
峰值内存
504.0 KiB