실행 실패 (제출 코드 컴파일 에러)
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 = 1005) { | ^ 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) % 3015; | ^ Main.c: In function ‘h_add’: 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:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 49 | scanf("%s", s); | ^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.