실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:18:37: warning: unused variable ‘chainIdx’ [-Wunused-variable] 18 | int cnt, hash, nameIdx = 0, chainIdx = 0; | ^~~~~~~~ Main.c: In function ‘merge’: Main.c:66:30: error: ‘log’ has no member named ‘hashNum’ 66 | left[leftIdx].hashNum = history[i].hashNum; | ^ Main.c:66:51: error: ‘log’ has no member named ‘hashNum’ 66 | left[leftIdx].hashNum = history[i].hashNum; | ^ Main.c:70:32: error: ‘log’ has no member named ‘hashNum’ 70 | right[rightIdx].hashNum = history[i].hashNum; | ^ Main.c:70:53: error: ‘log’ has no member named ‘hashNum’ 70 | right[rightIdx].hashNum = history[i].hashNum; | ^ Main.c:80:43: error: ‘log’ has no member named ‘hashNum’ 80 | history[i].hashNum = right[rightIdx].hashNum; | ^ Main.c:80:69: error: ‘log’ has no member named ‘hashNum’ 80 | history[i].hashNum = right[rightIdx].hashNum; | ^ Main.c:84:43: error: ‘log’ has no member named ‘hashNum’ 84 | history[i].hashNum = left[leftIdx].hashNum; | ^ Main.c:84:67: error: ‘log’ has no member named ‘hashNum’ 84 | history[i].hashNum = left[leftIdx].hashNum; | ^ Main.c:89:35: error: ‘log’ has no member named ‘hashNum’ 89 | history[i].hashNum = left[leftIdx].hashNum; | ^ Main.c:89:59: error: ‘log’ has no member named ‘hashNum’ 89 | history[i].hashNum = left[leftIdx].hashNum; | ^ Main.c:93:35: error: ‘log’ has no member named ‘hashNum’ 93 | history[i].hashNum = right[rightIdx].hashNum; | ^ Main.c:93:61: error: ‘log’ has no member named ‘hashNum’ 93 | history[i].hashNum = right[rightIdx].hashNum; | ^ Main.c:64:40: warning: unused variable ‘tmp’ [-Wunused-variable] 64 | int leftIdx = 0, rightIdx = 0, tmp; | ^~~ Main.c: In function ‘main’: Main.c:20:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 20 | scanf("%d", &cnt); | ^~~~~~~~~~~~~~~~~ Main.c:22:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 22 | scanf("%s %s", name, command); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.