실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:10:25: error: ‘rep’ undeclared (first use in this function) 10 | scanf("%d %s", &rep, target); | ^~~ Main.c:10:25: note: each undeclared identifier is reported only once for each function it appears in Main.c:11:29: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 11 | for (int i = 0; i < strlen(target); i++) | ^~~~~~ Main.c:2:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ 1 | #include <stdio.h> +++ |+#include <string.h> 2 | char target[21]; Main.c:11:29: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 11 | for (int i = 0; i < strlen(target); i++) | ^~~~~~ Main.c:11:29: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ Main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &cnt); | ^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.