/ 答案 /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:15:12: warning: unused variable 'j' [-Wunused-variable]
     int i, j, tmp;
            ^
foo.cc:15:15: warning: unused variable 'tmp' [-Wunused-variable]
     int i, j, tmp;
               ^~~
foo.cc:20:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d", &n, &k);
     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:22:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &arr[0]);
     ~~~~~^~~~~~~~~~~~~~~
foo.cc:27:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d", &arr[i]);
         ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 792.0 KiB
#2 Accepted 1ms 788.0 KiB
#3 Accepted 2ms 796.0 KiB
#4 Accepted 2ms 808.0 KiB
#5 Accepted 2ms 860.0 KiB
#6 Accepted 6ms 1.219 MiB
#7 Accepted 8ms 1.422 MiB
#8 Accepted 12ms 1.652 MiB
#9 Accepted 28ms 3.281 MiB
#10 Accepted 46ms 5.039 MiB

信息

递交者
类型
递交
题目
P1008 连续数之和
语言
C++
递交时间
2021-11-28 15:30:15
评测时间
2021-11-28 15:30:15
评测机
分数
100
总耗时
114ms
峰值内存
5.039 MiB