실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:75:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, std::pair<int, int> > >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 75 | for (int i = 0; i < edges.size() && cnt < n; ++i) | ~~^~~~~~~~~~~~~~ Main.cpp:79:26: error: too few arguments to function ‘bool unite(int, int, std::vector<int>&, std::vector<int>&)’ 79 | if (unite(idx.first, idx.second, parent)) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.cpp:22:6: note: declared here 22 | bool unite(int u, int v, vector<int>& parent, vector<int>& rank) | ^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.