실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘compare’: Main.c:12:4: error: unknown type name ‘divdie’; did you mean ‘divide’? 12 | divdie *y = (divide *)b; | ^~~~~~ | divide Main.c:12:16: warning: initialization of ‘int *’ from incompatible pointer type ‘divide *’ [-Wincompatible-pointer-types] 12 | divdie *y = (divide *)b; | ^ Main.c:14:19: error: expected ‘)’ before ‘!’ token 14 | if (x->Quotient ! = y->Quotient) return x->Quotient - y->Quotient; | ~ ^~ | ) Main.c:14:59: error: request for member ‘Quotient’ in something not a structure or union 14 | if (x->Quotient ! = y->Quotient) return x->Quotient - y->Quotient; | ^~ Main.c:15:32: error: request for member ‘Remainder’ in something not a structure or union 15 | else return x->Remainder - y->Remainder; | ^~ Main.c: In function ‘main’: Main.c:22:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scanf’ 22 | scanf("%d %d", &N, &K); | ^~~~~ Main.c:24:4: error: ‘d’ undeclared (first use in this function) 24 | d = (divide *)malloc(sizeof(divide) * N); | ^ Main.c:24:4: note: each undeclared identifier is reported only once for each function it appears in Main.c:40:9: error: ‘a’ undeclared (first use in this function) 40 | free(a); | ^ Main.c: In function ‘compare’: Main.c:16:1: warning: control reaches end of non-void function [-Wreturn-type] 16 | } | ^ Main.c: In function ‘main’: Main.c:22:4: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 22 | scanf("%d %d", &N, &K); | ^~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.