QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#579832#126. Balanced Strings3un_larryfuncCompile Error//C++172.7kb2024-09-21 18:21:122024-09-21 18:21:13

詳細信息

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