记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < a.length() && i < b.length(); i++) cout << a[i] << b[i];
              ~~^~~~~~~~~~~~
/in/foo.cc:10:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < a.length() && i < b.length(); i++) cout << a[i] << b[i];
                                ~~^~~~~~~~~~~~
/in/foo.cc:11:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (i == a.length())
      ~~^~~~~~~~~~~~~
/in/foo.cc:13:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (; i < b.length(); i++) cout << b[i];
          ~~^~~~~~~~~~~~
/in/foo.cc:17:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (; i < a.length(); i++) cout << a[i];
          ~~^~~~~~~~~~~~
/in/foo.cc:6:9: warning: unused variable 'j' [-Wunused-variable]
  int i, j;
         ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 216.0 KiB
#2 Wrong Answer 1ms 216.0 KiB
#3 Wrong Answer 1ms 224.0 KiB
#4 Wrong Answer 1ms 224.0 KiB
#5 Wrong Answer 1ms 212.0 KiB

信息

递交者
类型
递交
题目
1-2 编程题
语言
C++
递交时间
2021-06-13 09:31:59
评测时间
2021-06-13 09:31:59
评测机
分数
0
总耗时
8ms
峰值内存
224.0 KiB