Problem | competition |
---|---|
User | electron13 |
Submission Time | 2023-02-16 12:28:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:20:30: error: request for member ‘begin’ in ‘A.std::vector<int>::operator[](((void)0, ((std::vector<int>::size_type)a)))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
20 | int tot = accumulate(A[0,a].begin(),A[0,a].end(),0) + accumulate(B[0,b].begin(),B[0,b].end(),0);
| ^~~~~
competition.cpp:20:45: error: request for member ‘end’ in ‘A.std::vector<int>::operator[](((void)0, ((std::vector<int>::size_type)a)))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’}
20 | int tot = accumulate(A[0,a].begin(),A[0,a].end(),0) + accumulate(B[0,b].begin(),B[0,b].end(),0);
| ^~~
competition.cpp:20:74: error: request for member ‘begin’ in ‘B.std::vector<int>::oper