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