记录详情

Wrong Answer

/in/foo.cc: In function 'int Sum(std::__cxx11::string)':
/in/foo.cc:9:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.length();i++)
                 ~^~~~~~~~~~~
/in/foo.cc: In function 'int Scmp(std::__cxx11::string, std::__cxx11::string)':
/in/foo.cc:21:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<s2.length();i++)  
             ~^~~~~~~~~~~~
/in/foo.cc: In function 'int Sum(std::__cxx11::string)':
/in/foo.cc:13:12: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return sum;
            ^~~
# 状态 耗时 内存占用
#1 Accepted 1ms 360.0 KiB
#2 Accepted 1ms 340.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Wrong Answer 1ms 364.0 KiB
#5 Accepted 1ms 360.0 KiB
#6 Wrong Answer 1ms 336.0 KiB
#7 Wrong Answer 2ms 364.0 KiB
#8 Wrong Answer 2ms 456.0 KiB
#9 Wrong Answer 2ms 376.0 KiB
#10 Accepted 2ms 484.0 KiB

信息

递交者
类型
递交
题目
P1102 字符串还原
比赛
2024程序设计与竞赛作业赛第四场(体悟本心)
语言
C++
递交时间
2024-10-25 10:46:17
评测时间
2024-10-25 10:46:17
评测机
分数
50
总耗时
17ms
峰值内存
484.0 KiB