记录详情

Accepted

foo.cc: In function 'void solve()':
foo.cc:113:30: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  113 |                 int mid = l+r+1 >> 1;
      |                           ~~~^~
foo.cc:107:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  107 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
foo.cc:109:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  109 |                 scanf("%d%d",a+i,b+i);
      |                 ~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:128:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  128 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB

信息

递交者
类型
自测
题目
P1315 Let's throw a party
语言
C++
递交时间
2022-02-03 02:12:35
评测时间
2022-02-03 02:12:35
评测机
分数
10
总耗时
2ms
峰值内存
512.0 KiB