실행 실패 (제출 코드 컴파일 에러)
Main.c:3:17: error: expected ‘]’ before ‘;’ token 3 | #define HLM 3015; | ^ Main.c:5:9: note: in expansion of macro ‘HLM’ 5 | char HT[HLM][CLM], s[CLM], subS[CLM]; | ^~~ Main.c:5:17: error: expected identifier or ‘(’ before ‘]’ token 5 | char HT[HLM][CLM], s[CLM], subS[CLM]; | ^ Main.c:5:25: error: expected identifier or ‘(’ before ‘]’ token 5 | char HT[HLM][CLM], s[CLM], subS[CLM]; | ^ Main.c:5:36: error: expected identifier or ‘(’ before ‘]’ token 5 | char HT[HLM][CLM], s[CLM], subS[CLM]; | ^ Main.c: In function ‘my_strcmp’: Main.c:15:38: warning: value computed is not used [-Wunused-value] 15 | while (*a && *b && *a == *b) *a++, *b++; | ^~~~ Main.c: At top level: Main.c:19:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token 19 | void my_strncpy(const char* src, char* des, int len = CLM) { | ^ Main.c: In function ‘hash’: Main.c:28:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 28 | while (c = *s++) hash = (((hash << 5) + hash) + c) % HLM; | ^ Main.c: In function ‘h_add’: Main.c:35:16: error: ‘HT’ undeclared (first use in this function) 35 | while (HT[h][idx] && cnt--) { | ^~ Main.c:35:16: note: each undeclared identifier is reported only once for each function it appears in Main.c:39:9: warning: implicit declaration of function ‘my_strncpy’; did you mean ‘my_strcmp’? [-Wimplicit-function-declaration] 39 | my_strncpy(s, HT[h]); | ^~~~~~~~~~ | my_strcmp Main.c: In function ‘main’: Main.c:47:21: error: ‘s’ undeclared (first use in this function) 47 | scanf("%s", s); | ^ Main.c:51:43: error: ‘subS’ undeclared (first use in this function) 51 | my_strncpy(&s[j], subS, i); | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.