실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:9:5: error: ‘vector’ was not declared in this scope 9 | vector<bool> v(10001, true); // 0~10000까지 모든 수를 소수(true)로 초기화 | ^~~~~~ Main.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 1 | #include <iostream> +++ |+#include <vector> 2 | using namespace std; Main.cpp:9:12: error: expected primary-expression before ‘bool’ 9 | vector<bool> v(10001, true); // 0~10000까지 모든 수를 소수(true)로 초기화 | ^~~~ Main.cpp:12:13: error: ‘v’ was not declared in this scope 12 | if (v[i]) { // i가 소수이면 | ^ Main.cpp:27:16: error: ‘v’ was not declared in this scope 27 | if(v[n1] && v[n2]) { | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.