QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#488497#9156. 百万富翁hyforces#Compile Error//C++201.0kb2024-07-24 08:41:102024-07-24 08:41:10

详细

answer.code: In function ‘int findLargest(std::vector<int>)’:
answer.code:21:31: error: request for member ‘begin’ in ‘v.std::vector<int>::operator[](((std::vector<int>::size_type)a))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
   21 |                 if(count(v[a].begin(),v[a].end(),0)==0)return v[a];
      |                               ^~~~~
answer.code:21:44: error: request for member ‘end’ in ‘v.std::vector<int>::operator[](((std::vector<int>::size_type)a))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
   21 |                 if(count(v[a].begin(),v[a].end(),0)==0)return v[a];
      |                                            ^~~