/ Vijos /

记录详情

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 2ms 800.0 KiB
#2 Accepted 2ms 788.0 KiB
#3 Accepted 2ms 792.0 KiB
#4 Accepted 2ms 832.0 KiB
#5 Accepted 3ms 856.0 KiB
#6 Accepted 7ms 1.25 MiB
#7 Accepted 10ms 1.477 MiB
#8 Accepted 14ms 1.613 MiB
#9 Accepted 32ms 3.645 MiB
#10 Accepted 56ms 5.496 MiB

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2021-08-27 16:16:29
评测时间
2021-08-27 16:16:29
评测机
分数
100
总耗时
134ms
峰值内存
5.496 MiB