실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:21:32: error: expected unqualified-id before ‘const’ 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~~~~ Main.cpp:21:31: error: expected ‘;’ before ‘const’ 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~~~~~ | ; Main.cpp:21:73: error: could not convert ‘rit’ from ‘const std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vector<int> > >’ to ‘bool’ 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^ | | | const std::reverse_iterator<__gnu_cxx::__normal_iterator<int*, std::vector<int> > > Main.cpp:21:103: error: expected ‘)’ before ‘;’ token 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ~ ^ | ) Main.cpp:21:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~~ Main.cpp:21:105: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~ Main.cpp:21:17: warning: unused variable ‘i_count’ [-Wunused-variable] 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~~~~~~ Main.cpp:21:107: error: ‘rit’ was not declared in this scope 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~~ Main.cpp:21:114: error: ‘i_count’ was not declared in this scope 21 | for (size_t i_count { 0 }, const auto& rit { selectedCards.rbegin() }; rit != selectedCards.rend(); ++rit, ++i_count) | ^~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.