실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.c: In function \u2018main\u2019:\nMain.c:12:5: error: unknown type name \u2018data\u2019; use \u2018struct\u2019 keyword to refer to the type\n 12 | data a,b,c;\n | ^~~~\n | struct \nMain.c:14:25: error: request for member \u2018x\u2019 in something not a structure or union\n 14 | scanf(\"%lld %lld\",&a.x,&a.y);\n | ^\nMain.c:14:30: error: request for member \u2018y\u2019 in something not a structure or union\n 14 | scanf(\"%lld %lld\",&a.x,&a.y);\n | ^\nMain.c:16:6: error: request for member \u2018x\u2019 in something not a structure or union\n 16 | c.x=a.x;\n | ^\nMain.c:16:10: error: request for member \u2018x\u2019 in something not a structure or union\n 16 | c.x=a.x;\n | ^\nMain.c:17:6: error: request for member \u2018y\u2019 in something not a structure or union\n 17 | c.y=a.y;\n | ^\nMain.c:17:10: error: request for member \u2018y\u2019 in something not a structure or union\n 17 | c.y=a.y;\n | ^\nMain.c:20:29: error: request for member \u2018x\u2019 in something not a structure or union\n 20 | scanf(\"%lld %lld\",&b.x,&b.y);\n | ^\nMain.c:20:34: error: request for member \u2018y\u2019 in something not a structure or union\n 20 | scanf(\"%lld %lld\",&b.x,&b.y);\n | ^\nMain.c:21:15: error: request for member \u2018x\u2019 in something not a structure or union\n 21 | sum+=b.x*a.y;\n | ^\nMain.c:21:19: error: request for member \u2018y\u2019 in something not a structure or union\n 21 | sum+=b.x*a.y;\n | ^\nMain.c:22:15: error: request for member \u2018y\u2019 in something not a structure or union\n 22 | sum-=b.y*a.x;\n | ^\nMain.c:22:19: error: request for member \u2018x\u2019 in something not a structure or union\n 22 | sum-=b.y*a.x;\n | ^\nMain.c:23:10: error: request for member \u2018x\u2019 in something not a structure or union\n 23 | a.x=b.x;\n | ^\nMain.c:23:14: error: request for member \u2018x\u2019 in something not a structure or union\n 23 | a.x=b.x;\n | ^\nMain.c:24:10: error: request for member \u2018y\u2019 in something not a structure or union\n 24 | a.y=b.y;\n | ^\nMain.c:24:14: error: request for member \u2018y\u2019 in something not a structure or union\n 24 | a.y=b.y;\n | ^\nMain.c:26:11: error: request for member \u2018x\u2019 in something not a structure or union\n 26 | sum+=c.x*a.y;\n | ^\nMain.c:26:15: error: request for member \u2018y\u2019 in something not a structure or union\n 26 | sum+=c.x*a.y;\n | ^\nMain.c:27:11: error: request for member \u2018y\u2019 in something not a structure or union\n 27 | sum-=c.y*a.x;\n | ^\nMain.c:27:15: error: request for member \u2018x\u2019 in something not a structure or union\n 27 | sum-=c.y*a.x;\n | ^\nMain.c:28:26: warning: implicit declaration of function \u2018abs\u2019 [-Wimplicit-function-declaration]\n 28 | printf(\"%.1f\",(float)abs(sum)/2);\n | ^~~\nMain.c:3:1: note: include \u2018<stdlib.h>\u2019 or provide a declaration of \u2018abs\u2019\n 2 | #include <math.h>\n +++ |+#include <stdlib.h>\n 3 | struct data\nMain.c:28:30: warning: \u2018abs\u2019 argument 1 type is \u2018long long int\u2019 where \u2018int\u2019 is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]\n 28 | printf(\"%.1f\",(float)abs(sum)/2);\n | ^~~\n<built-in>: note: built-in \u2018abs\u2019 declared here\nMain.c:12:14: warning: variable \u2018c\u2019 set but not used [(...truncated, total 4553 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.