记录详情

Runtime Error

foo.cc: In function 'void xx(char*)':
foo.cc:8:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<strlen(s);i++){
               ~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:35:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (j=0;j<strlen(s1);j++){
               ~^~~~~~~~~~~
foo.cc:33:16: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
     while (s2[i]!='\0'){
            ~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 384.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
比赛
周末测试
语言
C++
递交时间
2021-11-07 10:28:45
评测时间
2021-11-07 10:28:45
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB