Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |         for(int i=0;i<s.size();i++)
      |                     ~^~~~~~~~~
/in/foo.cc:10:29: warning: value computed is not used [-Wunused-value]
   10 |                         s[i]=='6';
/in/foo.cc:12:29: warning: value computed is not used [-Wunused-value]
   12 |                         s[i]=='9';
/in/foo.cc:17:30: warning: overflow in conversion from 'int' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} changes value from '1000000' to '64' [-Woverflow]
   17 |                         s[i]=1000000;
      |                              ^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 492.0 KiB
#2 Wrong Answer 1ms 336.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 532.0 KiB
#5 Accepted 1ms 528.0 KiB
#6 Accepted 1ms 540.0 KiB
#7 Accepted 1ms 540.0 KiB
#8 Accepted 1ms 544.0 KiB
#9 Accepted 2ms 492.0 KiB
#10 Accepted 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P2939 中心对称数
语言
C++
递交时间
2026-02-26 12:55:34
评测时间
2026-02-26 12:55:34
评测机
分数
90
总耗时
19ms
峰值内存
544.0 KiB