실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘insert’: Main.c:14:66: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion] 14 | if(strlen((*head)->data) > strlen(c) && strcmp((*head)->data > c)){ | ~~~~~~~~~~~~~~^~~ | | | int In file included from Main.c:3: /usr/include/string.h:156:32: note: expected ‘const char *’ but argument is of type ‘int’ 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ Main.c:14:45: error: too few arguments to function ‘strcmp’ 14 | if(strlen((*head)->data) > strlen(c) && strcmp((*head)->data > c)){ | ^~~~~~ In file included from Main.c:3: /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ Main.c:21:51: error: too few arguments to function ‘strcmp’ 21 | if(strlen(tmp->next->data) > strlen(c) && strcmp(tmp->next->data)){ | ^~~~~~ In file included from Main.c:3: /usr/include/string.h:156:12: note: declared here 156 | extern int strcmp (const char *__s1, const char *__s2) | ^~~~~~ Main.c: In function ‘main’: Main.c:37:9: error: ‘Node’ has no member named ‘num’ 37 | head->num = c; | ^~ Main.c:33:11: warning: unused variable ‘n’ [-Wunused-variable] 33 | int N,n; | ^ Main.c: In function ‘insert’: Main.c:11:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%s",c); | ^~~~~~~~~~~~~ Main.c: In function ‘main’: Main.c:35:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 35 | scanf("%s",c); | ^~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.