실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘make_LL’: Main.c:22:62: error: ‘LINKEDLIST’ undeclared (first use in this function) 22 | new_node = (struct LINKEDLIST*)malloc(sizeof(LINKEDLIST)); | ^~~~~~~~~~ Main.c:22:62: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘L’: Main.c:62:9: warning: "/*" within comment [-Wcomment] 62 | /* | Main.c: In function ‘B’: Main.c:104:28: warning: variable ‘temp_ptr’ set but not used [-Wunused-but-set-variable] 104 | struct LINKEDLIST* temp_ptr = NULL; | ^~~~~~~~ Main.c: In function ‘P’: Main.c:197:18: warning: "/*" within comment [-Wcomment] 197 | //*ptr = new_node; | Main.c:150:28: warning: variable ‘org_node’ set but not used [-Wunused-but-set-variable] 150 | struct LINKEDLIST* org_node; | ^~~~~~~~ Main.c: In function ‘main’: Main.c:226:17: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[100000]’ [-Wformat=] 226 | scanf("%s", &str); | ~^ ~~~~ | | | | | char (*)[100000] | char * Main.c:232:50: error: ‘LINKEDLIST’ undeclared (first use in this function) 232 | head = (struct LINKEDLIST*)malloc(sizeof(LINKEDLIST)); | ^~~~~~~~~~ Main.c:226:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 226 | scanf("%s", &str); | ^~~~~~~~~~~~~~~~~ Main.c:259:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 259 | scanf("%d", &num); | ^~~~~~~~~~~~~~~~~ Main.c:267:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 267 | fgets(command, sizeof(command), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.