실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘my_strcmp’: Main.c:19:7: warning: value computed is not used [-Wunused-value] 19 | *a++; | ^~~~ Main.c:20:7: warning: value computed is not used [-Wunused-value] 20 | *b++; | ^~~~ Main.c: At top level: Main.c:25:53: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token 25 | void my_strncpy(const char* src, char* des, int len = 1005) { | ^ Main.c: In function ‘hash’: Main.c:34:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 34 | while (c = *s++) hash = (((hash << 5) + hash) + c) % 3015; | ^ Main.c: In function ‘h_add’: Main.c:45:9: warning: implicit declaration of function ‘my_strncpy’; did you mean ‘my_strcmp’? [-Wimplicit-function-declaration] 45 | my_strncpy(s, HT[h]); | ^~~~~~~~~~ | my_strcmp Main.c: In function ‘main’: Main.c:53:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 53 | scanf("%s", s); | ^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.