QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#863999 | #3434. Restaurant Orders | MaMengQi | Compile Error | / | / | C++11 | 991b | 2025-01-20 06:53:35 | 2025-01-20 06:53:35 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:20:15: error: no match for ‘operator|=’ (operand types are ‘std::vector<bool>::reference’ and ‘std::vector<bool>::reference’) 20 | dp[k] |= dp[k - prices[j]]; | ~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from answer.code:1: /usr/include/c++/14/bits/ios_base.h:104:3: note: candidate: ‘const std::_Ios_Fmtflags& std::operator|=(_Ios_Fmtflags&, _Ios_Fmtflags)’ 104 | operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW | ^~~~~~~~ /usr/include/c++/14/bits/ios_base.h:104:29: note: no known conversion for argument 1 from ‘std::vector<bool>::reference’ to ‘std::_Ios_Fmtflags&’ 104 | operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ios_base.h:154:3: note: candidate: ‘const std::_Ios_Openmode& std::operator|=(_Ios_Openmode&, _Ios_Openmode)’ 154 | operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW | ^~~~~~~~ /usr/include/c++/14/bits/ios_base.h:154:29: note: no known conversion for argument 1 from ‘std::vector<bool>::reference’ to ‘std::_Ios_Openmode&’ 154 | operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW | ~~~~~~~~~~~~~~~^~~ /usr/include/c++/14/bits/ios_base.h:201:3: note: candidate: ‘const std::_Ios_Iostate& std::operator|=(_Ios_Iostate&, _Ios_Iostate)’ 201 | operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW | ^~~~~~~~ /usr/include/c++/14/bits/ios_base.h:201:28: note: no known conversion for argument 1 from ‘std::vector<bool>::reference’ to ‘std::_Ios_Iostate&’ 201 | operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW | ~~~~~~~~~~~~~~^~~