/ 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 768.0 KiB
#2 Accepted 2ms 728.0 KiB
#3 Accepted 2ms 768.0 KiB
#4 Accepted 3ms 768.0 KiB
#5 Accepted 4ms 824.0 KiB
#6 Accepted 9ms 992.0 KiB
#7 Accepted 15ms 1.07 MiB
#8 Accepted 16ms 1.164 MiB
#9 Accepted 40ms 1.91 MiB
#10 Accepted 56ms 2.695 MiB

信息

递交者
类型
递交
题目
P1090 连续数之和
语言
C++
递交时间
2021-08-09 15:31:22
评测时间
2021-08-09 15:31:22
评测机
分数
100
总耗时
154ms
峰值内存
2.695 MiB