记录详情

Accepted

foo.c: In function 'main':
foo.c:7:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
    7 |     fgets(str1, sizeof(str1), stdin);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:9:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    9 |     scanf("%d%d", &k, &l);
      |     ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
                 from foo.c:2:
In function 'strcat',
    inlined from 'Delete' at foo.c:25:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:128:10: warning: '__builtin_strcat' accessing 4611686018427387905 or more bytes at offsets 0 and [-4611686018427387904, 4611686018427387903] may overlap 1 byte at offset [0, 9223372036854775807] [-Wrestrict]
  128 |   return __builtin___strcat_chk (__dest, __src, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 1ms 512.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1063 A8-7 删除字符串中一个子串
比赛
南师大2021程序设计基础课程第四次测验 (2021-12-23)
语言
C
递交时间
2021-12-23 14:26:01
评测时间
2021-12-23 14:26:01
评测机
分数
100
总耗时
9ms
峰值内存
512.0 KiB