QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#677284 | #126. Balanced Strings | yellowbird | Compile Error | / | / | C++17 | 7.6kb | 2024-10-26 10:56:40 | 2024-10-26 10:56:41 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void calc(int)’: answer.code:80:21: error: ‘class std::map<int, int>’ has no member named ‘contains’ 80 | if (mp1.contains(need)) ans += mp1[need]; | ^~~~~~~~ answer.code:81:24: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::map<int, int> >, std::map<int, int> >::value_type’ {aka ‘class std::map<int, int>’} has no member named ‘contains’ 81 | if (mp2[i].contains(need)) ans -= mp2[i][need]; | ^~~~~~~~