실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:37:32: error: too many arguments to function ‘malloc’ 37 | Coord* coord = (Coord*)malloc(N, sizeof(Coord)); | ^~~~~~ In file included from Main.c:2: /usr/include/stdlib.h:540:14: note: declared here 540 | extern void *malloc (size_t __size) __THROW __attribute_malloc__ | ^~~~~~ Main.c:36:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 36 | scanf("%d", &N); | ^~~~~~~~~~~~~~~ Main.c:39:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 39 | scanf("%d", &coord[i].x); | ^~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.