실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘bool f(const std::vector<int>&)’: Main.cpp:11:52: error: call of overloaded ‘queue(<brace-enclosed initializer list>)’ is ambiguous 11 | queue<unordered_set<int>> nexts({{arr.front()}}); | ^ In file included from /usr/include/c++/11/queue:64, from /usr/include/aarch64-linux-gnu/c++/11/bits/stdc++.h:86, from Main.cpp:1: /usr/include/c++/11/bits/stl_queue.h:174:7: note: candidate: ‘std::queue<_Tp, _Sequence>::queue(_Sequence&&) [with _Tp = std::unordered_set<int>; _Sequence = std::deque<std::unordered_set<int>, std::allocator<std::unordered_set<int> > >]’ 174 | queue(_Sequence&& __c) | ^~~~~ /usr/include/c++/11/bits/stl_queue.h:170:7: note: candidate: ‘std::queue<_Tp, _Sequence>::queue(const _Sequence&) [with _Tp = std::unordered_set<int>; _Sequence = std::deque<std::unordered_set<int>, std::allocator<std::unordered_set<int> > >]’ 170 | queue(const _Sequence& __c) | ^~~~~ /usr/include/c++/11/bits/stl_queue.h:96:11: note: candidate: ‘std::queue<std::unordered_set<int> >::queue(const std::queue<std::unordered_set<int> >&)’ 96 | class queue | ^~~~~ /usr/include/c++/11/bits/stl_queue.h:96:11: note: candidate: ‘std::queue<std::unordered_set<int> >::queue(std::queue<std::unordered_set<int> >&&)’ Main.cpp:23:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::unordered_set<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 23 | if (++sub_w == nexts.front().size()) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.