Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         for(int i=0;i<=s.size();i++)
      |                     ~^~~~~~~~~~
In file included from /usr/include/c++/12/string:53,
                 from /usr/include/c++/12/bits/locale_classes.h:40,
                 from /usr/include/c++/12/bits/ios_base.h:41,
                 from /usr/include/c++/12/ios:42,
                 from /usr/include/c++/12/istream:38,
                 from /usr/include/c++/12/sstream:38,
                 from /usr/include/c++/12/complex:45,
                 from /usr/include/c++/12/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:54,
                 from /in/foo.cc:1:
In member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::erase(size_type, size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]',
    inlined from 'int main()' at /in/foo.cc:16:9:
/usr/include/c++/12/bits/basic_string.h:2037:14: warning: 'wz' may be used uninitialized [-Wmaybe-uninitialized]
 2037 |         else if (__n != 0)
      |              ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:9:32: note: 'wz' was declared here
    9 |         cin.tie(nullptr); ll n,wz;
      |                                ^~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 480.0 KiB
#2 Wrong Answer 2ms 556.0 KiB

信息

递交者
类型
递交
题目
P1635 1-3 序列循环左移
语言
C++
递交时间
2025-10-07 12:31:40
评测时间
2025-10-07 12:31:40
评测机
分数
0
总耗时
4ms
峰值内存
556.0 KiB