실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void DFS(int, int)’: Main.cpp:19:26: error: template argument 1 is invalid 19 | stack<pair<int, int> s; // 현재 탐색 중인 인덱스를 저장할 스택 | ^ Main.cpp:19:26: error: template argument 2 is invalid Main.cpp:20:5: error: ‘s’ was not declared in this scope 20 | s.push(make_pair(ith, 1)); // 탐색을 0번 인덱스부터 시작 | ^ Main.cpp:37:41: error: expected ‘)’ before ‘;’ token 37 | s.push(make_pair(i, cnt + 1); // 다음 상태 푸시 | ~ ^ | ) Main.cpp: In function ‘int main()’: Main.cpp:57:8: error: too few arguments to function ‘void DFS(int, int)’ 57 | DFS(N); | ~~~^~~ Main.cpp:17:6: note: declared here 17 | void DFS(int N, int ith) | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.