记录详情

Runtime Error

foo.c: In function 'main':
foo.c:26:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[1000]' [-Wformat=]
   26 |     scanf("%d %s %s", &n,&a,&b);
      |               ~^         ~~
      |                |         |
      |                char *    char (*)[1000]
foo.c:26:19: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'char (*)[1000]' [-Wformat=]
   26 |     scanf("%d %s %s", &n,&a,&b);
      |                  ~^         ~~
      |                   |         |
      |                   char *    char (*)[1000]
foo.c:29:9: warning: unused variable 'len2' [-Wunused-variable]
   29 |     int len2 = strlen(b);
      |         ^~~~
foo.c:28:9: warning: unused variable 'len1' [-Wunused-variable]
   28 |     int len1 = strlen(a);
      |         ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Runtime Error Segmentation fault 2ms 284.0 KiB
#4 Runtime Error Segmentation fault 2ms 280.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
2-2 语言的起点
比赛
2023 程序设计与竞赛(作业6:走向综合)
语言
C
递交时间
2023-10-28 18:10:00
评测时间
2023-10-28 18:10:00
评测机
分数
60
总耗时
10ms
峰值内存
284.0 KiB