Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:9:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    9 |     for(int i=0;i<s.size();i++)
      |                 ~^~~~~~~~~
foo.cc:28:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   28 |     for(int i=0;i<=s.size();i++)
      |                 ~^~~~~~~~~~
foo.cc:54:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   54 |     for(int i=0;i<s.size();i++)
      |                 ~^~~~~~~~~
foo.cc:56:9: warning: ‘maxi’ may be used uninitialized [-Wmaybe-uninitialized]
   56 |         if(i==maxi)
      |         ^~
foo.cc:7:27: note: ‘maxi’ was declared here
    7 |     int max=-1,min=100000,maxi,mini;
      |                           ^~~~
foo.cc:64:9: warning: ‘mini’ may be used uninitialized [-Wmaybe-uninitialized]
   64 |         if(i==mini)
      |         ^~
foo.cc:7:32: note: ‘mini’ was declared here
    7 |     int max=-1,min=100000,maxi,mini;
      |                                ^~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 764.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 536.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 764.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 320.0 KiB
#5 Wrong Answer Read yhcxa, expect pckbxeeznmxxhfrc.... 2ms 536.0 KiB
#6 Wrong Answer Standard answer longer than user output. 2ms 548.0 KiB
#7 Wrong Answer Standard answer longer than user output. 2ms 536.0 KiB
#8 Wrong Answer Standard answer longer than user output. 1ms 536.0 KiB
#9 Wrong Answer Standard answer longer than user output. 2ms 536.0 KiB
#10 Wrong Answer Read wntzkxhbjmojsohh..., expect wnxeicbvpromhkqv.... 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1967 字符串 最长的单词和最短的单词
语言
C++
递交时间
2024-07-17 16:48:12
评测时间
2024-07-17 16:48:12
评测机
分数
0
总耗时
23ms
峰值内存
764.0 KiB