记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
    8 |         for (int i=0;i<strlen(s);i++)
      |                      ~^~~~~~~~~~
foo.cc:17:33: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   17 |                                 else ans=-int((-sum/strlen(s))+0.5); cout<<ans<<endl;
      |                                 ^~~~
foo.cc:17:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   17 |                                 else ans=-int((-sum/strlen(s))+0.5); cout<<ans<<endl;
      |                                                                      ^~~~
foo.cc:19:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   19 |                 else c=26+ans+'a';cout<<c<<endl;
      |                 ^~~~
foo.cc:19:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   19 |                 else c=26+ans+'a';cout<<c<<endl;
      |                                   ^~~~
foo.cc:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   20 |         for (int i=0;i<strlen(s);i++)
      |                      ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 308. 6ms 412.0 KiB
#2 Wrong Answer Read -2, expect 556. 5ms 408.0 KiB
#3 Wrong Answer 1,3d0 < 6 < 6 < g 4ms 412.0 KiB
#4 Wrong Answer Read -4, expect 248. 4ms 412.0 KiB
#5 Wrong Answer Read 8, expect 46. 4ms 332.0 KiB
#6 Wrong Answer Read -2, expect 283. 3ms 412.0 KiB
#7 Wrong Answer Read 6, expect 364. 3ms 412.0 KiB
#8 Wrong Answer Read 10, expect 243. 3ms 412.0 KiB
#9 Wrong Answer Read 10, expect 374. 3ms 412.0 KiB
#10 Wrong Answer 1,53d0 < -9 < -19 < -22 < -22 4ms 332.0 KiB
#11 Wrong Answer Read -12, expect 17. 4ms 412.0 KiB
#12 Wrong Answer 1,45d0 < 12 < 26 < 25 < 19 < 1 3ms 412.0 KiB
#13 Wrong Answer Read -13, expect 252274. 181ms 752.0 KiB
#14 Wrong Answer 1,65105d0 < 10 < 16 < 28 < 42 274ms 760.0 KiB
#15 Wrong Answer Read 2, expect 418608. 314ms 888.0 KiB
#16 Wrong Answer 1,21512d0 < 6 < 4 < 6 < -4 < 3 97ms 468.0 KiB
#17 Wrong Answer Read 4, expect 587423. 419ms 1.129 MiB
#18 Wrong Answer 1,94378d0 < 3 < 9 < 15 < 15 < 440ms 1.023 MiB
#19 Wrong Answer 1,66561d0 < 8 < 24 < 22 < 22 < 283ms 788.0 KiB
#20 Wrong Answer 1,100002d0 < 9 < 5 < 9 < 16 < 430ms 1.023 MiB

信息

递交者
类型
递交
题目
P1537 Problem 5B. 操作字符串
比赛
2023秋 悬赏令第五周
语言
C++
递交时间
2023-11-06 19:43:46
评测时间
2023-11-06 19:43:46
评测机
分数
0
总耗时
2493ms
峰值内存
1.129 MiB