/ OPS /

记录详情

Wrong Answer

/in/foo.cc: In function 'void turn(std::string&)':
/in/foo.cc:6:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    6 |  for (int i = 0;i < s.length() / 2;i++)
      |                 ~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |    for (int i = tempb; i < num.length(); i++)
      |                        ~~^~~~~~~~~~~~~~
/in/foo.cc:26:8: warning: unused variable 'templen' [-Wunused-variable]
   26 |    int templen = num.length() - ans.length();
      |        ^~~~~~~
/in/foo.cc:35:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   35 |   for (int i = 0;i < num.length();i++)               //模拟进位
      |                  ~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 356.0 KiB

信息

递交者
类型
递交
题目
P1041 大数和
语言
C++
递交时间
2024-12-20 19:26:11
评测时间
2024-12-20 20:00:53
评测机
分数
0
总耗时
3ms
峰值内存
356.0 KiB