실행 실패 (제출 코드 컴파일 에러)
Main.cpp:7:21: error: ‘std::vector<int> close [10]’ redeclared as different kind of entity 7 | vector<int> close[10]; // 각 구역의 인접한 구역 | ^ In file included from /usr/include/aarch64-linux-gnu/bits/sigstksz.h:24, from /usr/include/signal.h:328, from /usr/include/c++/11/csignal:42, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:43, from Main.cpp:1: /usr/include/unistd.h:358:12: note: previous declaration ‘int close(int)’ 358 | extern int close (int __fd); | ^~~~~ Main.cpp: In function ‘void dfs(int, int, int)’: Main.cpp:30:52: warning: pointer to a function used in arithmetic [-Wpointer-arith] 30 | for(int dir2 = 0; dir2 < close[cur2].size(); ++dir2){ | ^ Main.cpp:30:54: error: request for member ‘size’ in ‘*(close + ((sizetype)cur2))’, which is of non-class type ‘int(int)’ 30 | for(int dir2 = 0; dir2 < close[cur2].size(); ++dir2){ | ^~~~ Main.cpp:31:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] 31 | int nx2 = close[cur2][dir2]; | ^ Main.cpp:31:51: warning: pointer to a function used in arithmetic [-Wpointer-arith] 31 | int nx2 = close[cur2][dir2]; | ^ Main.cpp:31:51: error: invalid conversion from ‘int (*)(int)’ to ‘int’ [-fpermissive] 31 | int nx2 = close[cur2][dir2]; | ^ | | | int (*)(int) Main.cpp:49:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] 49 | for(int i = 0; i < close[idx].size(); ++i){ | ^ Main.cpp:49:39: error: request for member ‘size’ in ‘*(close + ((sizetype)idx))’, which is of non-class type ‘int(int)’ 49 | for(int i = 0; i < close[idx].size(); ++i){ | ^~~~ Main.cpp:50:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] 50 | int idxn = close[idx][i]; | ^ Main.cpp:50:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] 50 | int idxn = close[idx][i]; | ^ Main.cpp:50:40: error: invalid conversion from ‘int (*)(int)’ to ‘int’ [-fpermissive] 50 | int idxn = close[idx][i]; | ^ | | | int (*)(int) Main.cpp: In function ‘int main()’: Main.cpp:66:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] 66 | close[i].push_back(close_now); | ^ Main.cpp:66:34: error: request for member ‘push_back’ in ‘*(close + ((sizetype)i))’, which is of non-class type ‘int(int)’ 66 | close[i].push_back(close_now); | ^~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.