QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#118496#4303. New LevellarryzhongCompile Error//C++172.1kb2023-07-03 16:42:082023-07-03 16:42:52

詳細信息

answer.code: In function ‘int main()’:
answer.code:66:41: error: no match for ‘operator[]’ (operand types are ‘std::tuple_element<1, std::pair<int, std::__cxx11::list<int> > >::type’ {aka ‘std::__cxx11::list<int>’} and ‘int’)
   66 |                 if (v.size() != d.size(v[0])) continue;
      |                                         ^
answer.code:78:35: error: no match for ‘operator[]’ (operand types are ‘std::tuple_element<1, std::pair<int, std::__cxx11::list<int> > >::type’ {aka ‘std::__cxx11::list<int>’} and ‘int’)
   78 |                 int bel = d.find(v[0]);
      |                                   ^