실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:8:12: error: ‘new’ undeclared (first use in this function) 8 | nums = new int[8]; | ^~~ Main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in Main.c:8:15: error: expected ‘;’ before ‘int’ 8 | nums = new int[8]; | ^~~~ | ; Main.c:18:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 18 | if(max > nums[i]); | ^~ Main.c:19:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 19 | max = nums[i]; | ^~~ Main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d",&nums[i]); | ^~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.