실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘dist’: Main.c:10:9: warning: implicit declaration of function ‘abs’ [-Wimplicit-function-declaration] 10 | r = abs((double) pow(c1.x - c2.x,2) - (double) pow(c1.y - c2.y,2)); | ^~~ Main.c:3:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘abs’ 2 | #include <math.h> +++ |+#include <stdlib.h> 3 | Main.c:10:41: warning: ‘abs’ argument 1 type is ‘double’ where ‘int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 10 | r = abs((double) pow(c1.x - c2.x,2) - (double) pow(c1.y - c2.y,2)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <built-in>: note: built-in ‘abs’ declared here Main.c: In function ‘main’: Main.c:20:50: error: expected ‘)’ before ‘printf’ 20 | if ( (double)c1.r < d || (double)c2.r < d printf("0\n"); | ~ ^~~~~~~ | ) Main.c:25:5: error: expected expression before ‘}’ token 25 | } | ^ Main.c:15:12: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | int T; scanf("%d",&T); | ^~~~~~~~~~~~~~ Main.c:18:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d %d %d %d %d %d",&c1.x,&c1.y,&c1.r,&c2.x,&c2.y,&c2.r); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.