Runtime Error

foo.c: In function 'main':
foo.c:12:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
         printf("%s", x);
                 ~^
                 %d
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &n);
     ^~~~~~~~~~~~~~~
foo.c:8:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d", &x1);
     ^~~~~~~~~~~~~~~~
foo.c:11:9: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%s", &x);
         ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 256.0 KiB
#2 Runtime Error Segmentation fault 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1082 1-3 序列循环左移
语言
C
递交时间
2021-09-30 22:01:02
评测时间
2021-09-30 22:01:08
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB