실행 실패 (제출 코드 컴파일 에러)
Main.c:4:1: error: unknown type name ‘using’ 4 | using namespace std; | ^~~~~ Main.c:4:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘std’ 4 | using namespace std; | ^~~ Main.c:9:1: error: unknown type name ‘bool’ 9 | bool cmp(int i, int j) { | ^~~~ Main.c:4:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? 3 | #include <stdlib.h> +++ |+#include <stdbool.h> 4 | using namespace std; Main.c: In function ‘main’: Main.c:29:16: error: ‘true’ undeclared (first use in this function) 29 | while (true) { | ^~~~ Main.c:29:16: note: ‘true’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? Main.c:29:16: note: each undeclared identifier is reported only once for each function it appears in Main.c:31:17: warning: implicit declaration of function ‘sort’; did you mean ‘qsort’? [-Wimplicit-function-declaration] 31 | sort(sa, sa + N, cmp); | ^~~~ | qsort Main.c:57:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token 57 | for (int a : lcp) { | ^ Main.c:58:24: error: ‘a’ undeclared (first use in this function) 58 | sum += a; | ^ Main.c:18:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%s", S); | ^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.