실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:9:14: error: ‘new’ undeclared (first use in this function) 9 | int* n = new int[N]; | ^~~ Main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in Main.c:9:18: error: expected ‘,’ or ‘;’ before ‘int’ 9 | int* n = new int[N]; | ^~~ Main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d",&N); | ^~~~~~~~~~~~~~ Main.c:13:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%d",&n[i]); | ^~~~~~~~~~~~~~~~~ Main.c:15:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d",&v); | ^~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.