실행 실패 (제출 코드 컴파일 에러)
Main.cpp:10:1: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 10 | __float128 f(const __float128& x) { | ^~~~~~~~~~ | _Float128 Main.cpp: In function ‘int main()’: Main.cpp:20:5: error: ‘__float128’ was not declared in this scope; did you mean ‘_Float128’? 20 | __float128 x1 = 1.0*(C+B)/A, x2 = 1.0*(C-B)/A, y1, y2, update1 = -1, update2 = 1; | ^~~~~~~~~~ | _Float128 Main.cpp:21:32: error: ‘x1’ was not declared in this scope; did you mean ‘y1’? 21 | bool temp1 = signbit((ld)f(x1)), temp2 = signbit((ld)f(x2)); | ^~ | y1 Main.cpp:21:30: error: ‘f’ was not declared in this scope 21 | bool temp1 = signbit((ld)f(x1)), temp2 = signbit((ld)f(x2)); | ^ Main.cpp:25:9: error: ‘y2’ was not declared in this scope; did you mean ‘yn’? 25 | y2 = f(x2); | ^~ | yn Main.cpp:25:16: error: ‘x2’ was not declared in this scope 25 | y2 = f(x2); | ^~ Main.cpp:27:18: error: invalid cast from type ‘double (*)(double) noexcept’ to type ‘ld’ {aka ‘long double’} 27 | if(fabsl((ld)y1) <= 1e-16) {x2 = x1; break;} | ^~~~~~ Main.cpp:32:19: error: expected ‘;’ before ‘y’ 32 | __float128 y = (y1+y2)/2; | ^~ | ; Main.cpp:34:22: error: ‘y’ was not declared in this scope; did you mean ‘yn’? 34 | if(fabsl((ld)y) <= 1e-16) break; | ^ | yn Main.cpp:36:30: error: invalid cast from type ‘double (*)(double) noexcept’ to type ‘ld’ {aka ‘long double’} 36 | bool sign1 = signbit((ld)y1), sign2 = signbit((ld)y2); | ^~~~~~ Main.cpp:38:28: error: ‘update1’ was not declared in this scope 38 | if(sign1 != temp1) update1 *= -0.5; | ^~~~~~~ Main.cpp:39:12: error: ‘sign2’ was not declared in this scope; did you mean ‘sign1’? 39 | if(sign2 != temp2) update2 *= -0.5; | ^~~~~ | sign1 Main.cpp:39:21: error: ‘temp2’ was not declared in this scope; did you mean ‘temp1’? 39 | if(sign2 != temp2) update2 *= -0.5; | ^~~~~ | temp1 Main.cpp:39:28: error: ‘update2’ was not declared in this scope 39 | if(sign2 != temp2) update2 *= -0.5; | ^~~~~~~ Main.cpp:41:15: error: ‘update1’ was not declared in this scope 41 | x1 += update1; | ^~~~~~~ Main.cpp:42:15: error: ‘update2’ was not declared in this scope 42 | x2 += update2; | ^~~~~~~ Main.cpp:45:9: error: ‘temp2’ was not declared in this scope; did you mean ‘temp1’? 45 | temp2 = sign2; | ^~~~~ | temp1 Main.cpp:45:17: error: ‘sign2’ was not declared in this scope; did you mean ‘sign1’? 45 | temp2 = sign2; | ^~~~~ | sign1 Main.cpp:48:50: error: ‘x2’ was not declared in this scope 48 | cout << fixed << setprecision(6) << (ld)((x1+x2)/2); | ^~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.