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)提供评测服务
信息
- 递交者
- 类型
- 自测
- 语言
- C
- 递交时间
- 2023-12-05 15:57:12
- 评测时间
- 2023-12-05 15:57:12
- 评测机
- 分数
- 10
- 总耗时
- 1ms
- 峰值内存
- 284.0 KiB