记录详情

Runtime Error

foo.cc: In function 'long long int once(long int, long int)':
foo.cc:11:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   for (int i = number_after + 1; i = 1; i--)
                                  ~~^~~
foo.cc:15:38: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   for (size_t i = number_before+1; i =1; i--)
                                    ~~^~
foo.cc:19:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (size_t i =1; i <= number_after-number_before; i++)
                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:25:40: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   for (size_t i = number_before + 1; i = 1; i--)
                                      ~~^~~
foo.cc:29:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (size_t i = 1; i <= number_before - number_after; i++)
                      ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:46:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (size_t i = 0; i < len_s; i++)
                     ~~^~~~~~~
foo.cc:48:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (s[i] = '5') {
       ~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 372.0 KiB
#2 Wrong Answer Read 10, expect 30. 1ms 384.0 KiB
#3 Wrong Answer Read 7, expect 12. 1ms 384.0 KiB
#4 Wrong Answer Read 300, expect 43257. 1ms 384.0 KiB
#5 Wrong Answer Read 300, expect 41953. 1ms 384.0 KiB
#6 Wrong Answer Read 300, expect 43261. 1ms 384.0 KiB
#7 Wrong Answer Read 300, expect 43183. 1ms 384.0 KiB
#8 Runtime Error Segmentation fault 1ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 384.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB
#11 Runtime Error Segmentation fault 2ms 384.0 KiB
#12 Runtime Error Segmentation fault 2ms 384.0 KiB
#13 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
比赛
南京师范大学2021年11月程序设计竞赛
语言
C++
递交时间
2021-11-21 15:19:30
评测时间
2021-11-21 15:19:30
评测机
分数
10
总耗时
24ms
峰值内存
384.0 KiB