실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘const string solve(std::priority_queue<std::pair<int, std::__cxx11::basic_string<char> >, std::vector<std::pair<int, std::__cxx11::basic_string<char> > >, std::greater<std::pair<int, std::__cxx11::basic_string<char> > > >&)’: Main.cpp:45:45: error: no match for ‘operator=’ (operand types are ‘std::_Rb_tree_const_iterator<int>’ and ‘std::set<int>::size_type’ {aka ‘long unsigned int’}) 45 | it = checkFlag.erase(*it); | ^ In file included from /usr/include/c++/11/set:60, from Main.cpp:5: /usr/include/c++/11/bits/stl_tree.h:328:12: note: candidate: ‘constexpr std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(const std::_Rb_tree_const_iterator<int>&)’ 328 | struct _Rb_tree_const_iterator | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/11/bits/stl_tree.h:328:12: note: no known conversion for argument 1 from ‘std::set<int>::size_type’ {aka ‘long unsigned int’} to ‘const std::_Rb_tree_const_iterator<int>&’ /usr/include/c++/11/bits/stl_tree.h:328:12: note: candidate: ‘constexpr std::_Rb_tree_const_iterator<int>& std::_Rb_tree_const_iterator<int>::operator=(std::_Rb_tree_const_iterator<int>&&)’ /usr/include/c++/11/bits/stl_tree.h:328:12: note: no known conversion for argument 1 from ‘std::set<int>::size_type’ {aka ‘long unsigned int’} to ‘std::_Rb_tree_const_iterator<int>&&’
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.