记录详情

Runtime Error

foo.c: In function 'compare':
foo.c:43:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if (i = n)
      ^
foo.c: In function 'main':
foo.c:12:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%c", &a[0]);
  ^~~~~~~~~~~~~~~~~~
foo.c:16:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%c", &a[i]);
   ^~~~~~~~~~~~~~~~~~
foo.c: In function 'compare':
foo.c:45:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 288.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Runtime Error Segmentation fault 131ms 296.0 KiB
#4 Runtime Error Segmentation fault 131ms 216.0 KiB
#5 Runtime Error Segmentation fault 131ms 292.0 KiB
#6 Runtime Error Segmentation fault 132ms 308.0 KiB
#7 Runtime Error Segmentation fault 12ms 812.0 KiB
#8 Runtime Error Segmentation fault 12ms 780.0 KiB
#9 Runtime Error Segmentation fault 26ms 748.0 KiB
#10 Runtime Error Segmentation fault 13ms 796.0 KiB

信息

递交者
类型
递交
题目
P1301 H. String Shifting
语言
C
递交时间
2021-11-22 18:28:41
评测时间
2021-11-22 18:28:41
评测机
分数
30
总耗时
591ms
峰值内存
812.0 KiB