실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:9:9: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration] 9 | scanf_s("%d", &n); | ^~~~~~~ | scanf Main.c:16:34: warning: comparison between pointer and integer 16 | while (arr[a][x] != NULL) | ^~ Main.c:21:34: warning: comparison between pointer and integer 21 | while (arr[b][x] != NULL) | ^~ Main.c:26:13: warning: unused variable ‘x’ [-Wunused-variable] 26 | int x = n; | ^ Main.c: In function ‘record_parent’: Main.c:39:35: warning: comparison between pointer and integer 39 | while (arr[parent][child] != NULL) { | ^~ Main.c:42:45: warning: comparison between pointer and integer 42 | if (ans[arr[parent][child]] == NULL) { | ^~ /usr/bin/ld: /tmp/ccHTYbGQ.o: in function `main': Main.c:(.text.startup+0x30): undefined reference to `scanf_s' /usr/bin/ld: Main.c:(.text.startup+0x7c): undefined reference to `scanf_s' collect2: error: ld returned 1 exit status
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.