실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:6:9: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration] 6 | scanf_s("%s",str1,21); | ^~~~~~~ | scanf Main.c:10:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 10 | if (str1[0] == 'l' && str2[0] == 'k' && str3[0] == 'p') printf("GLOBAL"); exit(0); | ^~ Main.c:10:83: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 10 | if (str1[0] == 'l' && str2[0] == 'k' && str3[0] == 'p') printf("GLOBAL"); exit(0); | ^~~~ Main.c:10:83: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] Main.c:2:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ 1 | #include <stdio.h> +++ |+#include <stdlib.h> 2 | Main.c:10:83: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 10 | if (str1[0] == 'l' && str2[0] == 'k' && str3[0] == 'p') printf("GLOBAL"); exit(0); | ^~~~ Main.c:10:83: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ Main.c:11:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 11 | if (str1[0] == 'l' && str2[0] == 'p' && str3[0] == 'k') printf("GLOBAL"); exit(0); | ^~ Main.c:11:83: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 11 | if (str1[0] == 'l' && str2[0] == 'p' && str3[0] == 'k') printf("GLOBAL"); exit(0); | ^~~~ Main.c:12:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 12 | if (str1[0] == 'k' && str2[0] == 'l' && str3[0] == 'p') printf("GLOBAL"); exit(0); | ^~ Main.c:12:83: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 12 | if (str1[0] == 'k' && str2[0] == 'l' && str3[0] == 'p') printf("GLOBAL"); exit(0); | ^~~~ Main.c:13:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 13 | if (str1[0] == 'k' && str2[0] == 'p' && str3[0] == 'l') printf("GLOBAL"); exit(0); | ^~ Main.c:13:83: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 13 | if (str1[0] == 'k' && str2[0] == 'p' && str3[0] == 'l') printf("GLOBAL"); exit(0); | ^~~~ Main.c:14:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 14 | if (str1[0] == 'p' && str2[0] == 'l' && str3[0] == 'k') printf("GLOBAL"); exit(0); | ^~ Main.c:14:83: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 14 | if (str1[0] == 'p' && str2[0] == 'l' && str3[0] == 'k') printf("GLOBAL"); exit(0); | ^~~~ Main.c:15:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 15 | if (str1[0] == 'p' && str2[0] == 'k' && str3[0] == 'l') printf("GLOBAL"); exit(0); | ^~ Main.c:15:83: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 15 | if (str1[0] == 'p' && str2[0] == 'k' && str3[0] == 'l') printf("GLOBAL"); exit(0); | ^~~~ /usr/bin/ld: /tmp/ccP6ac65.o: in function `main': Main.c:(.text.startup+0x40): undefined reference to `scanf_s' /usr/bin/ld: Main.c:(.text.startup+0x50): undefined reference to `scanf_s' /usr/bin/ld: Main.c:(.text.startup+0x60): undefined reference to `scanf_s' collect2: error: ld returned 1 exit status
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.