실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:7:5: error: ‘vector’ was not declared in this scope 7 | vector<int> v; | ^~~~~~ 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:7:12: error: expected primary-expression before ‘int’ 7 | vector<int> v; | ^~~ Main.cpp:13:13: error: ‘v’ was not declared in this scope 13 | v.push_back(a[i]); | ^ Main.cpp:17:11: error: ‘v’ was not declared in this scope 17 | cout<<v<<endl; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.