记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:17:12: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
     if (s1[strlen(s1) - 1] == '\n') {
            ^~~~~~
/in/foo.c:17:12: warning: incompatible implicit declaration of built-in function 'strlen'
/in/foo.c:17:12: note: include '<string.h>' or provide a declaration of 'strlen'
/in/foo.c:23:12: warning: incompatible implicit declaration of built-in function 'strlen'
     if (s2[strlen(s2) - 1] == '\n') {
            ^~~~~~
/in/foo.c:23:12: note: include '<string.h>' or provide a declaration of 'strlen'
# 状态 耗时 内存占用
#1 Accepted 1ms 324.0 KiB

信息

递交者
类型
自测
题目
A8-1 字符串的输出函数
语言
C
递交时间
2024-11-26 07:49:08
评测时间
2024-11-26 07:49:08
评测机
分数
10
总耗时
1ms
峰值内存
324.0 KiB