Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < s.length(); i++){
                 ~~^~~~~~~~~~~~
/in/foo.cc:15:20: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
  s = s.erase(pos, 1);
                    ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 364.0 KiB
#2 Wrong Answer 1ms 392.0 KiB
#3 Accepted 1ms 380.0 KiB
#4 Wrong Answer 1ms 396.0 KiB
#5 Accepted 1ms 340.0 KiB

信息

递交者
类型
递交
题目
P1094 5-8 留下最大数
语言
C++
递交时间
2024-06-07 17:59:54
评测时间
2024-06-07 17:59:54
评测机
分数
40
总耗时
7ms
峰值内存
396.0 KiB