/ Vijos /

记录详情

Accepted

foo.c: In function 'main':
foo.c:20:9: warning: unused variable 'k' [-Wunused-variable]
   20 | int i,j,k;
      |         ^
foo.c:20:7: warning: unused variable 'j' [-Wunused-variable]
   20 | int i,j,k;
      |       ^
foo.c: In function 'init':
foo.c:54:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   54 | scanf("%d",&k);
      | ^~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
                 from foo.c:3:
In function 'strncpy',
    inlined from 'base' at foo.c:68:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output may be truncated copying 9 bytes from a string of length 199 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strcpy',
    inlined from 'swap_one' at foo.c:88:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' accessing 1 byte at offsets [0, 3628830] and [0, 3628830] may overlap 1 byte at offset 0 [-Wrestrict]
   90 |   return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strcpy',
    inlined from 'swap_one' at foo.c:88:1,
    inlined from 'bfs' at foo.c:102:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' accessing 1 byte at offsets [0, 3628830] and [0, 3628830] may overlap 1 byte at offset 0 [-Wrestrict]
   90 |   return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1030ms 6.5 MiB
#2 Accepted 1075ms 6.5 MiB
#3 Accepted 779ms 6.492 MiB
#4 Accepted 910ms 6.492 MiB
#5 Accepted 1018ms 6.504 MiB
#6 Accepted 1051ms 6.492 MiB
#7 Accepted 923ms 6.5 MiB
#8 Accepted 894ms 6.625 MiB
#9 Accepted 1145ms 6.5 MiB
#10 Accepted 750ms 6.5 MiB

信息

递交者
类型
递交
题目
P1029 晴天小猪历险记之Number
语言
C
递交时间
2021-12-25 21:11:09
评测时间
2021-12-25 21:11:09
评测机
分数
100
总耗时
9580ms
峰值内存
6.625 MiB