실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void myFunc(int)’: Main.cpp:26:5: error: ‘vector’ was not declared in this scope 26 | vector<stack<int>>tmp_s[2]; | ^~~~~~ Main.cpp:4:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 3 | #include <stack> +++ |+#include <vector> 4 | using namespace std; Main.cpp:26:21: error: expected primary-expression before ‘>’ token 26 | vector<stack<int>>tmp_s[2]; | ^~ Main.cpp:26:23: error: ‘tmp_s’ was not declared in this scope 26 | vector<stack<int>>tmp_s[2]; | ^~~~~ Main.cpp:38:31: error: ‘tmp’ was not declared in this scope; did you mean ‘top’? 38 | tmp_s[i].push(tmp); | ^~~ | top Main.cpp: In function ‘int main()’: Main.cpp:75:24: error: ‘std::__cxx11::list<std::stack<int> >::iterator’ has no member named ‘size’ 75 | int size = *it.size(); | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.