记录详情

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 292.0 KiB
#2 Accepted 0ms 284.0 KiB
#3 Runtime Error Segmentation fault 128ms 256.0 KiB
#4 Runtime Error Segmentation fault 128ms 296.0 KiB
#5 Runtime Error Segmentation fault 128ms 296.0 KiB
#6 Runtime Error Segmentation fault 129ms 312.0 KiB
#7 Runtime Error Segmentation fault 13ms 812.0 KiB
#8 Runtime Error Segmentation fault 12ms 816.0 KiB
#9 Runtime Error Segmentation fault 26ms 684.0 KiB
#10 Runtime Error Segmentation fault 13ms 740.0 KiB

信息

递交者
类型
递交
题目
P1301 H. String Shifting
比赛
南京师范大学2021年11月程序设计竞赛
语言
C
递交时间
2021-11-21 17:29:14
评测时间
2021-11-21 17:29:14
评测机
分数
30
总耗时
582ms
峰值内存
816.0 KiB