실행 실패 (제출 코드 컴파일 에러)
Main.cpp:12:13: error: conflicting declaration ‘std::deque<int> v’ 12 | deque <int> v; | ^ Main.cpp:5:14: note: previous declaration as ‘std::vector<int> v [2001]’ 5 | vector <int> v[2001]; | ^ Main.cpp: In function ‘void DFS(int)’: Main.cpp:16:11: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘std::vector<int> [2001]’ 16 | v.push_back(x); | ^~~~~~~~~ Main.cpp:22:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 22 | for (int i=0;i<v[x].size();i++){ | ~^~~~~~~~~~~~ Main.cpp:34:23: error: request for member ‘empty’ in ‘v’, which is of non-class type ‘std::vector<int> [2001]’ 34 | while (!v.empty()){ | ^~~~~ Main.cpp:35:27: error: request for member ‘front’ in ‘v’, which is of non-class type ‘std::vector<int> [2001]’ 35 | visited[v.front()]=0; | ^~~~~ Main.cpp:36:19: error: request for member ‘pop_front’ in ‘v’, which is of non-class type ‘std::vector<int> [2001]’ 36 | v.pop_front(); | ^~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.