记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:11:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
   11 |  scanf("%d%d",&n,&k);
      |         ~^    ~~
      |          |    |
      |          int* ll* {aka long long int*}
      |         %lld
foo.cc:11:12: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
   11 |  scanf("%d%d",&n,&k);
      |           ~^     ~~
      |            |     |
      |            int*  ll* {aka long long int*}
      |           %lld
foo.cc:13:11: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
   13 |   scanf("%d",&a[i]);
      |          ~^  ~~~~~
      |           |  |
      |           |  ll* {aka long long int*}
      |           int*
      |          %lld
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |  scanf("%d%d",&n,&k);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:13:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%d",&a[i]);
      |   ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 3ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 1ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 1ms 256.0 KiB
#10 Accepted 1ms 256.0 KiB
#11 Accepted 1ms 256.0 KiB
#12 Accepted 2ms 256.0 KiB
#13 Accepted 1ms 256.0 KiB
#14 Accepted 1ms 256.0 KiB
#15 Accepted 1ms 256.0 KiB
#16 Accepted 1ms 256.0 KiB
#17 Accepted 1ms 256.0 KiB
#18 Accepted 1ms 256.0 KiB
#19 Accepted 1ms 256.0 KiB
#20 Accepted 1ms 256.0 KiB
#21 Accepted 1ms 256.0 KiB
#22 Accepted 1ms 256.0 KiB
#23 Accepted 1ms 252.0 KiB
#24 Accepted 1ms 256.0 KiB
#25 Accepted 2ms 256.0 KiB
#26 Accepted 2ms 256.0 KiB
#27 Accepted 3ms 256.0 KiB
#28 Accepted 3ms 256.0 KiB
#29 Accepted 1ms 256.0 KiB
#30 Accepted 1ms 256.0 KiB
#31 Accepted 14ms 512.0 KiB
#32 Accepted 134ms 3.871 MiB
#33 Accepted 82ms 3.492 MiB
#34 Accepted 27ms 888.0 KiB
#35 Accepted 68ms 3.242 MiB
#36 Accepted 32ms 1.617 MiB
#37 Accepted 68ms 2.492 MiB
#38 Accepted 90ms 3.242 MiB
#39 Accepted 12ms 896.0 KiB
#40 Accepted 33ms 896.0 KiB
#41 Accepted 86ms 3.867 MiB
#42 Accepted 31ms 1.75 MiB
#43 Accepted 25ms 896.0 KiB
#44 Accepted 40ms 1.242 MiB
#45 Accepted 78ms 3.492 MiB
#46 Accepted 101ms 3.992 MiB
#47 Accepted 99ms 3.492 MiB
#48 Accepted 51ms 1.367 MiB
#49 Accepted 21ms 1.0 MiB
#50 Accepted 63ms 2.992 MiB
#51 Accepted 81ms 2.871 MiB
#52 Accepted 96ms 3.867 MiB
#53 Accepted 51ms 2.367 MiB
#54 Accepted 81ms 3.242 MiB
#55 Accepted 21ms 1.125 MiB
#56 Accepted 25ms 1.25 MiB
#57 Accepted 4ms 384.0 KiB
#58 Accepted 96ms 3.492 MiB
#59 Accepted 63ms 2.367 MiB
#60 Accepted 42ms 1.367 MiB

信息

递交者
类型
递交
题目
P1346 1C 在数组中添加元素
比赛
悬赏令第一周
语言
C++
递交时间
2022-04-01 19:46:15
评测时间
2022-04-01 19:46:15
评测机
分数
120
总耗时
1784ms
峰值内存
3.992 MiB