실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:19:9: error: ‘string’ was not declared in this scope 19 | string str = to_string(int(pow(2, a))); | ^~~~~~ Main.cpp:4:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’? 3 | #include<cmath> +++ |+#include <string> 4 | using namespace std; Main.cpp:20:5: error: ‘str’ was not declared in this scope; did you mean ‘std’? 20 | str[str.length()-1]-=1; | ^~~ | std Main.cpp:18:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d",&a); | ~~~~~^~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.