Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |  for(int i=0;i<s.size();i++)
      |              ~^~~~~~~~~
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 j=xb;j<s.size()-1;j++)
      |               ~^~~~~~~~~~~
foo.cc:18:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |  for(int x=0;x<s.size()-1;x++)
      |              ~^~~~~~~~~~~
foo.cc:6:12: warning: variable 'min' set but not used [-Wunused-but-set-variable]
    6 |  long long min,xb;
      |            ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Wrong Answer Read 9998887776665554..., expect 9999888777666555.... 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1094 5-8 留下最大数
语言
C++
递交时间
2022-07-18 14:49:05
评测时间
2022-07-18 14:49:05
评测机
分数
80
总耗时
9ms
峰值内存
384.0 KiB