记录详情

Accepted

foo.c: In function 'Concat':
foo.c:8:9: warning: unused variable 'len2' [-Wunused-variable]
    8 |     int len2 = strlen(s2);
      |         ^~~~
foo.c:9:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation]
    9 |     strncpy(result, s1, len1 - 1);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:7:16: note: length computed here
    7 |     int len1 = strlen(s1);
      |                ^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB

信息

递交者
类型
自测
题目
A8-4 字符串的连接函数
语言
C
递交时间
2023-12-05 16:01:01
评测时间
2023-12-05 16:01:01
评测机
分数
10
总耗时
1ms
峰值内存
284.0 KiB