실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:19:22: error: no match for ‘operator^’ (operand types are ‘std::basic_ostream<char>’ and ‘int’) 19 | cout << b^j << '\n'; | ~~~~~~~~~^~~~~~~~~~ | | | | | int | std::basic_ostream<char> Main.cpp:19:22: note: candidate: ‘operator^(int, int)’ (built-in) 19 | cout << b^j << '\n'; | ~~~~~~~~~^~~~~~~~~~ Main.cpp:19:22: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘int’ In file included from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/ios_base.h:91:3: note: candidate: ‘constexpr std::_Ios_Fmtflags std::operator^(std::_Ios_Fmtflags, std::_Ios_Fmtflags)’ 91 | operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) | ^~~~~~~~ /usr/include/c++/11/bits/ios_base.h:91:27: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘std::_Ios_Fmtflags’ 91 | operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/ios_base.h:133:3: note: candidate: ‘constexpr std::_Ios_Openmode std::operator^(std::_Ios_Openmode, std::_Ios_Openmode)’ 133 | operator^(_Ios_Openmode __a, _Ios_Openmode __b) | ^~~~~~~~ /usr/include/c++/11/bits/ios_base.h:133:27: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘std::_Ios_Openmode’ 133 | operator^(_Ios_Openmode __a, _Ios_Openmode __b) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/11/bits/ios_base.h:173:3: note: candidate: ‘constexpr std::_Ios_Iostate std::operator^(std::_Ios_Iostate, std::_Ios_Iostate)’ 173 | operator^(_Ios_Iostate __a, _Ios_Iostate __b) | ^~~~~~~~ /usr/include/c++/11/bits/ios_base.h:173:26: note: no known conversion for argument 1 from ‘std::basic_ostream<char>’ to ‘std::_Ios_Iostate’ 173 | operator^(_Ios_Iostate __a, _Ios_Iostate __b) | ~~~~~~~~~~~~~^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.