실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:6:5: error: ‘cin’ was not declared in this scope 6 | cin >> T; | ^~~ Main.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? 1 | #include <cmath> +++ |+#include <iostream> 2 | using namespace std; Main.cpp:10:19: error: ‘to_string’ was not declared in this scope 10 | char x = (to_string)(a)[(to_string)(a).length()-1];//끝자리 수 | ^~~~~~~~~ Main.cpp:13:13: error: ‘cout’ was not declared in this scope 13 | cout << x << '\n'; | ^~~~ Main.cpp:13:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? Main.cpp:15:13: error: ‘cout’ was not declared in this scope 15 | cout << "10\n"; | ^~~~ Main.cpp:15:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’? Main.cpp:19:13: error: ‘cout’ was not declared in this scope 19 | cout << (to_string)(res)[(to_string)(res).length()-1] << '\n'; | ^~~~ Main.cpp:19:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.