실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:17:23: error: no match for ‘operator*’ (operand types are ‘std::vector<int>::iterator’ and ‘std::vector<int>::iterator’) 17 | cout << num.begin() * num.end(); | ~~~~~~~~~~~ ^ ~~~~~~~~~ | | | | | __normal_iterator<[...],[...]> | __normal_iterator<[...],[...]> In file included from /usr/include/c++/11/bits/stl_algobase.h:67, from /usr/include/c++/11/bits/char_traits.h:39, from /usr/include/c++/11/ios:40, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stl_iterator.h:1042:7: note: candidate: ‘constexpr __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator*() const [with _Iterator = int*; _Container = std::vector<int>; __gnu_cxx::__normal_iterator<_Iterator, _Container>::reference = int&]’ 1042 | operator*() const _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/11/bits/stl_iterator.h:1042:7: note: candidate expects 0 arguments, 1 provided
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.