실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:12:17: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[51]’ [-Wformat=] 12 | scanf("%s", list + i); | ~^ ~~~~~~~~ | | | | char * char (*)[51] Main.c: In function ‘merge’: Main.c:53:33: error: ‘leftidx’ undeclared (first use in this function); did you mean ‘leftIdx’? 53 | if (strcmp(left[leftidx], right[rightIdx]) > 0) { | ^~~~~~~ | leftIdx Main.c:53:33: note: each undeclared identifier is reported only once for each function it appears in Main.c: In function ‘main’: Main.c:10:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%d", &cnt); | ^~~~~~~~~~~~~~~~~ Main.c:12:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%s", list + i); | ^~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.