记录详情

Runtime Error

foo.c: In function 'main':
foo.c:9:12: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    9 |         if(strcmp(a,b)==0)
      |            ^~~~~~
foo.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
foo.c:9:19: warning: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    9 |         if(strcmp(a,b)==0)
      |                   ^
      |                   |
      |                   char
foo.c:9:19: note: expected 'const char *' but argument is of type 'char'
foo.c:9:21: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    9 |         if(strcmp(a,b)==0)
      |                     ^
      |                     |
      |                     char
foo.c:9:21: note: expected 'const char *' but argument is of type 'char'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 284.0 KiB
#2 Runtime Error Segmentation fault 2ms 284.0 KiB
#3 Runtime Error Segmentation fault 2ms 284.0 KiB
#4 Runtime Error Segmentation fault 1ms 284.0 KiB
#5 Runtime Error Segmentation fault 2ms 284.0 KiB
#6 Runtime Error Segmentation fault 1ms 284.0 KiB
#7 Runtime Error Segmentation fault 1ms 284.0 KiB
#8 Runtime Error Segmentation fault 1ms 284.0 KiB
#9 Runtime Error Segmentation fault 2ms 284.0 KiB
#10 Runtime Error Segmentation fault 2ms 284.0 KiB

信息

递交者
类型
递交
比赛
2023秋 苏州青少年科技馆(吴江计算机协会)CSP-J/S模拟赛(4)
语言
C
递交时间
2023-10-13 20:56:55
评测时间
2023-10-13 20:56:55
评测机
分数
0
总耗时
20ms
峰值内存
284.0 KiB