실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int pre(int)’: Main.cpp:8:21: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?) 8 | if(graph[point].size == 0)return 0; | ~~~~~~~~~~~~~^~~~ | () Main.cpp:9:35: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?) 9 | for(int i = 0 ;i<graph[point].size ;i++){ | ~~~~~~~~~~~~~^~~~ | () Main.cpp: In function ‘int dfs(int)’: Main.cpp:16:21: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?) 16 | if(graph[point].size == 0){counta++;return 0; | ~~~~~~~~~~~~~^~~~ | () Main.cpp:18:35: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?) 18 | for(int i = 0 ;i<graph[point].size ;i++){ | ~~~~~~~~~~~~~^~~~ | () Main.cpp: In function ‘int main()’: Main.cpp:29:9: error: expected ‘}’ before ‘else’ 29 | else{graph[m].push_back(i);} | ^~~~ Main.cpp:27:20: note: to match this ‘{’ 27 | if(m == -1){ | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.