실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int bfs(int, int)’: Main.cpp:3:11: error: ‘pair’ was not declared in this scope 3 | queue<pair<long long, int>> q; | ^~~~ Main.cpp:3:5: error: ‘queue’ was not declared in this scope 3 | queue<pair<long long, int>> q; | ^~~~~ Main.cpp:3:16: error: expected primary-expression before ‘long’ 3 | queue<pair<long long, int>> q; | ^~~~ Main.cpp:4:5: error: ‘unordered_set’ was not declared in this scope 4 | unordered_set<long long> visited; | ^~~~~~~~~~~~~ Main.cpp:4:19: error: expected primary-expression before ‘long’ 4 | unordered_set<long long> visited; | ^~~~ Main.cpp:6:5: error: ‘q’ was not declared in this scope 6 | q.push({a, 1}); | ^ Main.cpp:7:5: error: ‘visited’ was not declared in this scope 7 | visited.insert(a); | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.