QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#677283#126. Balanced StringsyellowbirdCompile Error//C++177.6kb2024-10-26 10:56:062024-10-26 10:56:11

詳細信息

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];
      |                        ^~~~~~~~