실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:15:20: error: no matching function for call to ‘std::__cxx11::list<int>::push_back(std::basic_istream<char>::__istream_type&)’ 15 | A.push_back(cin >> 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 = int; _Alloc = std::allocator<int>; std::__cxx11::list<_Tp, _Alloc>::value_type = 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 ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘const value_type&’ {aka ‘const 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 = int; _Alloc = std::allocator<int>; std::__cxx11::list<_Tp, _Alloc>::value_type = 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 ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} to ‘std::__cxx11::list<int>::value_type&&’ {aka ‘int&&’} 1217 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.