실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void DFS(int, std::vector<int>*, bool*)’: Main.cpp:12:16: warning: ‘sizeof’ on array function parameter ‘graph’ will return size of ‘std::vector<int>*’ [-Wsizeof-array-argument] 12 | int a = sizeof(graph)/sizeof(graph[0]); | ~^~~~~~ Main.cpp:9:33: note: declared here 9 | void DFS(int start, vector<int> graph[], bool check[]){ | ~~~~~~~~~~~~^~~~~~~ Main.cpp:13:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | for(int i=0; i<graph[start].size(); i++){ | ~^~~~~~~~~~~~~~~~~~~~ Main.cpp:12:5: warning: unused variable ‘a’ [-Wunused-variable] 12 | int a = sizeof(graph)/sizeof(graph[0]); | ^ Main.cpp: In function ‘int main()’: Main.cpp:40:18: error: expected ‘;’ before ‘}’ token 40 | cout << 0 << '\n' | ^ | ; 41 | } | ~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.