Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |   for(int i=0;i<s.size();i++){
      |               ~^~~~~~~~~
/in/foo.cc:25:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   25 |     for(int c=0;c<s.size();c++){
      |                 ~^~~~~~~~~
/in/foo.cc: In function 'char find()':
/in/foo.cc:11:20: warning: 'w' may be used uninitialized [-Wmaybe-uninitialized]
   11 |   return char(w+'a'-1);
      |               ~~~~~^~
/in/foo.cc:6:14: note: 'w' was declared here
    6 |   int maxa=0,w;
      |              ^
In function 'char find()',
    inlined from 'int main()' at /in/foo.cc:23:17:
/in/foo.cc:11:20: warning: 'w' may be used uninitialized [-Wmaybe-uninitialized]
   11 |   return char(w+'a'-1);
      |               ~~~~~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:14: note: 'w' was declared here
    6 |   int maxa=0,w;
      |              ^
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Accepted 1ms 344.0 KiB
#3 Accepted 2ms 480.0 KiB
#4 Accepted 2ms 468.0 KiB
#5 Accepted 2ms 472.0 KiB
#6 Accepted 2ms 484.0 KiB
#7 Accepted 1ms 528.0 KiB
#8 Accepted 1ms 492.0 KiB
#9 Accepted 1ms 344.0 KiB
#10 Accepted 1ms 348.0 KiB

信息

递交者
类型
递交
题目
P1975 牛的速记(short)
语言
C++
递交时间
2026-03-28 14:44:39
评测时间
2026-03-28 14:44:39
评测机
分数
100
总耗时
21ms
峰值内存
528.0 KiB