실행 실패 (제출 코드 컴파일 에러)
Main.cpp:3:15: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 3 | #define float __float128 | ^~~~~~~~~~ Main.cpp:5:1: note: in expansion of macro ‘float’ 5 | float PI=3.1415926535897932384626; | ^~~~~ Main.cpp:3:15: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 3 | #define float __float128 | ^~~~~~~~~~ Main.cpp:7:1: note: in expansion of macro ‘float’ 7 | float sine(float x) { | ^~~~~ Main.cpp: In function ‘int32_t main()’: Main.cpp:16:5: error: ‘PI’ was not declared in this scope 16 | PI*=2; | ^~ Main.cpp:3:15: error: ‘__float128’ was not declared in this scope; did you mean ‘_Float128’? 3 | #define float __float128 | ^~~~~~~~~~ Main.cpp:17:5: note: in expansion of macro ‘float’ 17 | float A, B, C, l, r, x; | ^~~~~ Main.cpp:20:5: error: ‘A’ was not declared in this scope 20 | A=a, B=b, C=c; | ^ Main.cpp:20:10: error: ‘B’ was not declared in this scope 20 | A=a, B=b, C=c; | ^ Main.cpp:20:15: error: ‘C’ was not declared in this scope 20 | A=a, B=b, C=c; | ^ Main.cpp:21:11: error: expected ‘;’ before ‘u’ 21 | float u=1000000, d=0.5; | ^ Main.cpp:22:5: error: ‘l’ was not declared in this scope 22 | l=(C-B)/A, r=(C+B)/A; | ^ Main.cpp:22:16: error: ‘r’ was not declared in this scope 22 | l=(C-B)/A, r=(C+B)/A; | ^ Main.cpp:25:9: error: ‘x’ was not declared in this scope 25 | x=(l+r)/2; | ^ Main.cpp:26:15: error: expected ‘;’ before ‘v’ 26 | float v=A*x+B*sine(x); | ^ Main.cpp:27:13: error: ‘v’ was not declared in this scope 27 | if (v<C) l=x; | ^ Main.cpp:30:59: error: ‘u’ was not declared in this scope 30 | cout << setprecision(6) << fixed << (long double)(int(u*r+d)/u); | ^ Main.cpp:30:63: error: ‘d’ was not declared in this scope 30 | cout << setprecision(6) << fixed << (long double)(int(u*r+d)/u); | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.