记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:26:15: warning: array subscript has type 'char' [-Wchar-subscripts]
  for( i=0;s1[i]!=0;i++)
               ^
/in/foo.cc:28:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   cin>>s1[i];
            ^
/in/foo.cc:30:15: warning: array subscript has type 'char' [-Wchar-subscripts]
  for( i=0;s2[i]!=0;i++)
               ^
/in/foo.cc:32:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   cin>>s2[i];
            ^
/in/foo.cc:26:15: warning: 's1[0]' is used uninitialized in this function [-Wuninitialized]
  for( i=0;s1[i]!=0;i++)
           ~~~~^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 332.0 KiB

信息

递交者
类型
自测
题目
A8-4 字符串的连接函数
语言
C++
递交时间
2024-12-02 13:48:13
评测时间
2024-12-02 13:48:15
评测机
分数
0
总耗时
1ms
峰值内存
332.0 KiB