记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:6:12: warning: unused variable 'j' [-Wunused-variable]
    6 |  int n,s,i,j,a[1000000],x=0,b[1000000];
      |            ^
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d%d",&n,&s);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 |   scanf("%d",&a[i]);
      |   ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 9ms 7.875 MiB
#2 Accepted 10ms 7.875 MiB
#3 Accepted 17ms 7.875 MiB
#4 Accepted 21ms 7.875 MiB
#5 Accepted 27ms 7.875 MiB

信息

递交者
类型
递交
题目
6-1 和为定值的数对
比赛
2021(四) 作业第四场:加速赛
语言
C++
递交时间
2021-12-08 20:13:30
评测时间
2021-12-08 20:13:31
评测机
分数
100
总耗时
87ms
峰值内存
7.875 MiB