실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:14:15: error: invalid operands to binary & (have ‘char *’ and ‘int’) 14 | scanf("%d"&N); | ~~~~^ | | | char * Main.c:15:23: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 15 | int** vs = (int**)malloc(sizeof(int*)*N); | ^~~~~~ Main.c:2:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ 1 | #include<stdio.h> +++ |+#include <stdlib.h> 2 | Main.c:15:23: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] 15 | int** vs = (int**)malloc(sizeof(int*)*N); | ^~~~~~ Main.c:15:23: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ Main.c:18:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d %d",v,v+1); | ^~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.