记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(now5==str.size()-1) {
     ~~~~^~~~~~~~~~~~~~
foo.cc:13:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=now5;i!=str.size();i++)
             ~^~~~~~~~~~~~
foo.cc:8:33: warning: unused variable 'j' [-Wunused-variable]
  int last5,now5=str.find('5'),i,j;
                                 ^
foo.cc:19:11: warning: 'last5' may be used uninitialized in this function [-Wmaybe-uninitialized]
   else res+=last5;
        ~~~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 22, expect 12. 1ms 384.0 KiB
#2 Wrong Answer Read 18, expect 6. 1ms 348.0 KiB
#3 Wrong Answer Read 52327, expect 41261. 1ms 384.0 KiB

信息

递交者
类型
自测
题目
P1290 C. Young Man Do Not Say Five
语言
C++
递交时间
2021-11-21 14:19:08
评测时间
2021-11-21 14:19:08
评测机
分数
0
总耗时
5ms
峰值内存
384.0 KiB