실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:18:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 18 | for (int i = 0; i < strAdd.size(); i++) | ~~^~~~~~~~~~~~~~~ Main.cpp:37:47: warning: comparison of integer expressions of different signedness: ‘std::set<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 37 | if (setNumbers.size() > iNo) break; | ~~~~~~~~~~~~~~~~~~^~~~~ Main.cpp:40:33: error: ‘memset’ was not declared in this scope 40 | memset(&strAdd[0], '0', sizeof(char) * strAdd.size()); | ^~~~~~ Main.cpp:6:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 5 | #include <set> +++ |+#include <cstring> 6 | using namespace std; Main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d", &iNo); | ~~~~~^~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.