실행 실패 (제출 코드 컴파일 에러)
Main.c:9:9: error: unknown type name ‘node’ 9 | node* llink; | ^~~~ Main.c:10:9: error: unknown type name ‘node’ 10 | node* rlink; | ^~~~ Main.c: In function ‘init’: Main.c:16:21: warning: assignment to ‘int *’ from incompatible pointer type ‘node *’ [-Wincompatible-pointer-types] 16 | head->llink = head; | ^ Main.c:17:21: warning: assignment to ‘int *’ from incompatible pointer type ‘node *’ [-Wincompatible-pointer-types] 17 | head->rlink = head; | ^ Main.c: In function ‘in’: Main.c:23:18: warning: assignment to ‘int *’ from incompatible pointer type ‘node *’ [-Wincompatible-pointer-types] 23 | p->rlink = after; | ^ Main.c:25:21: error: request for member ‘rlink’ in something not a structure or union 25 | after->llink->rlink = p; | ^~ Main.c:26:22: warning: assignment to ‘int *’ from incompatible pointer type ‘node *’ [-Wincompatible-pointer-types] 26 | after->llink = p; | ^ Main.c: In function ‘out’: Main.c:30:22: error: request for member ‘rlink’ in something not a structure or union 30 | remove->llink->rlink = remove->rlink; | ^~ Main.c:31:22: error: request for member ‘llink’ in something not a structure or union 31 | remove->rlink->llink = remove->llink; | ^~ Main.c: In function ‘main’: Main.c:40:24: warning: spurious trailing ‘%’ in format [-Wformat=] 40 | scanf("%", &tem); | ^ Main.c:40:23: warning: too many arguments for format [-Wformat-extra-args] 40 | scanf("%", &tem); | ^~~ Main.c:45:21: warning: assignment to ‘node *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 45 | where->link = head->rlink; | ^ Main.c:50:36: warning: assignment to ‘node *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 50 | next->link = where->link->rlink; | ^ Main.c:53:44: warning: assignment to ‘node *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 53 | next->link = next->link->llink; | ^ Main.c:60:36: warning: assignment to ‘node *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 60 | next->link = where->link->llink; | ^ Main.c:63:44: warning: assignment to ‘node *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 63 | next->link = next->link->rlink; | ^ Main.c:37:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 37 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ Main.c:40:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 40 | scanf("%", &tem); | ^~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.