실행 실패 (제출 코드 컴파일 에러)
Main.cpp:6:1: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 6 | __float128 abs(const __float128& x) { | ^~~~~~~~~~ | _Float128 Main.cpp:15:1: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 15 | __float128 factorial(const int& n) { | ^~~~~~~~~~ | _Float128 Main.cpp:19:1: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 19 | __float128 sin(__float128 x) { | ^~~~~~~~~~ | _Float128 Main.cpp:31:1: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 31 | __float128 cos(__float128 x) { | ^~~~~~~~~~ | _Float128 Main.cpp:43:20: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 43 | double round(const __float128& x) { | ^~~~~~~~~~ | _Float128 Main.cpp: In function ‘int main()’: Main.cpp:47:15: error: ‘__float128’ does not name a type; did you mean ‘_Float128’? 47 | const __float128 tol = 1e-34Q; | ^~~~~~~~~~ | _Float128 Main.cpp:49:9: error: ‘__float128’ was not declared in this scope; did you mean ‘_Float128’? 49 | __float128 a = (__float128)A / C, b = (__float128)B / C; | ^~~~~~~~~~ | _Float128 Main.cpp:50:19: error: expected ‘;’ before ‘now’ 50 | __float128 now = 1 / a, next = now; | ^~~~ | ; Main.cpp:51:27: error: ‘now’ was not declared in this scope 51 | while (abs(next - now) > tol) { | ^~~ Main.cpp:51:34: error: ‘tol’ was not declared in this scope; did you mean ‘atol’? 51 | while (abs(next - now) > tol) { | ^~~ | atol Main.cpp:53:31: error: ‘a’ was not declared in this scope 53 | next = now - (a * now + b * sin(now) - 1) / (a + b * cos(now)); | ^ Main.cpp:53:41: error: ‘b’ was not declared in this scope 53 | next = now - (a * now + b * sin(now) - 1) / (a + b * cos(now)); | ^ Main.cpp:53:45: error: ‘sin’ was not declared in this scope 53 | next = now - (a * now + b * sin(now) - 1) / (a + b * cos(now)); | ^~~ Main.cpp:53:70: error: ‘cos’ was not declared in this scope 53 | next = now - (a * now + b * sin(now) - 1) / (a + b * cos(now)); | ^~~ Main.cpp:55:56: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long double’ to binary ‘operator*’ 55 | cout << fixed << setprecision(6) << round(next * 1e6Q) / 1e6; | ~~~~~^~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.