실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:17:16: error: expected expression before ‘%’ token 17 | sprintf(a, %d, k); | ^ Main.c:17:13: warning: passing argument 1 of ‘sprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 17 | sprintf(a, %d, k); | ^ | | | int * In file included from /usr/include/features.h:486, from /usr/include/aarch64-linux-gnu/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from Main.c:1: /usr/include/aarch64-linux-gnu/bits/stdio2.h:36:1: note: expected ‘char * restrict’ but argument is of type ‘int *’ 36 | __NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) | ^~~~~ Main.c:12:11: warning: variable ‘k’ set but not used [-Wunused-but-set-variable] 12 | int N,k,a[1000],num,count=0; | ^ Main.c:14:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d", &N); | ^~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.