실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘Double hanoi(long long int, long long int)’: Main.cpp:36:18: error: ‘pow’ was not declared in this scope 36 | if (k == pow(2, n) - 1) { | ^~~ Main.cpp:39:18: error: ‘pow’ was not declared in this scope 39 | if (k == pow(2, n - 1)) { | ^~~ Main.cpp:42:17: error: ‘pow’ was not declared in this scope 42 | if (k < pow(2, n - 1)) { | ^~~ Main.cpp:53:17: error: ‘pow’ was not declared in this scope 53 | if (k > pow(2, n - 1) and k < pow(2, n) - 1) { | ^~~ Main.cpp:64:1: warning: control reaches end of non-void function [-Wreturn-type] 64 | } | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.