실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void myFunc(int)’: Main.cpp:56:28: error: no matching function for call to ‘std::__cxx11::list<std::stack<int> >::push_back(<brace-enclosed initializer list>)’ 56 | sequences.push_back({input}); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/11/list:63, from Main.cpp:2: /usr/include/c++/11/bits/stl_list.h:1212:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::stack<int>; _Alloc = std::allocator<std::stack<int> >; std::__cxx11::list<_Tp, _Alloc>::value_type = std::stack<int>]’ 1212 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_list.h:1212:35: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const std::stack<int>&’} 1212 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_list.h:1217:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(std::__cxx11::list<_Tp, _Alloc>::value_type&&) [with _Tp = std::stack<int>; _Alloc = std::allocator<std::stack<int> >; std::__cxx11::list<_Tp, _Alloc>::value_type = std::stack<int>]’ 1217 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_list.h:1217:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::__cxx11::list<std::stack<int> >::value_type&&’ {aka ‘std::stack<int>&&’} 1217 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ Main.cpp: In function ‘int main()’: Main.cpp:66:24: error: no matching function for call to ‘std::__cxx11::list<std::stack<int> >::push_back(<brace-enclosed initializer list>)’ 66 | sequences.push_back({tmp}); | ~~~~~~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/include/c++/11/list:63, from Main.cpp:2: /usr/include/c++/11/bits/stl_list.h:1212:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::stack<int>; _Alloc = std::allocator<std::stack<int> >; std::__cxx11::list<_Tp, _Alloc>::value_type = std::stack<int>]’ 1212 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_list.h:1212:35: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const std::stack<int>&’} 1212 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/stl_list.h:1217:7: note: candidate: ‘void std::__cxx11::list<_Tp, _Alloc>::push_back(std::__cxx11::list<_Tp, _Alloc>::value_type&&) [with _Tp = std::stack<int>; _Alloc = std::allocator<std::stack<int> >; std::__cxx11::list<_Tp, _Alloc>::value_type = std::stack<int>]’ 1217 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/11/bits/stl_list.h:1217:30: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::__cxx11::list<std::stack<int> >::value_type&&’ {aka ‘std::stack<int>&&’} 1217 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.