실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:9:5: error: ‘vector’ was not declared in this scope 9 | vector<int>primes; | ^~~~~~ 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 ‘int’ 9 | vector<int>primes; | ^~~ Main.cpp:12:9: error: ‘primes’ was not declared in this scope 12 | primes.push_back(i); | ^~~~~~ Main.cpp:13:33: error: ‘MX’ was not declared in this scope 13 | for (int j = i * i; j < MX; j += i) { | ^~ Main.cpp:35:22: error: expected ‘;’ before ‘}’ token 35 | } while(true) | ^ | ; 36 | } | ~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.