실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:9:5: error: ‘queue’ was not declared in this scope 9 | queue<int> people; | ^~~~~ Main.cpp:3:1: note: ‘std::queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’? 2 | #include <vector> +++ |+#include <queue> 3 | Main.cpp:9:11: error: expected primary-expression before ‘int’ 9 | queue<int> people; | ^~~ Main.cpp:10:11: error: expected primary-expression before ‘int’ 10 | queue<int> seq; | ^~~ Main.cpp:16:9: error: ‘people’ was not declared in this scope 16 | people.push(i + 1); | ^~~~~~ Main.cpp:19:13: error: ‘people’ was not declared in this scope 19 | while (!people.empty()) { | ^~~~~~ Main.cpp:25:9: error: ‘seq’ was not declared in this scope 25 | seq.push(people.front()); | ^~~ Main.cpp:30:12: error: ‘seq’ was not declared in this scope 30 | while (seq.size() != 1) { | ^~~ Main.cpp:34:13: error: ‘seq’ was not declared in this scope 34 | cout << seq.front() << ">\n"; | ^~~ Main.cpp:13:9: warning: unused variable ‘idx’ [-Wunused-variable] 13 | int idx = 0; | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.