Problem competition
User electron13
Submission Time 2023-02-16 12:28:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:20:2: error: expected primary-expression before ‘%’ token
20 | %A[0,a];
| ^
competition.cpp:21:2: error: expected primary-expression before ‘%’ token
21 | %vector<int> Bn = B[0,b];
| ^
competition.cpp:21:15: error: expected primary-expression before ‘Bn’
21 | %vector<int> Bn = B[0,b];
| ^~
competition.cpp:22: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’}
22 | int tot = accumulate(A[0,a].begin(),A[0,a].end(),0) + accumulate(B[0,b].begin(),B[0,b].end(),0);
| ^~~~~
competition.cpp:22:45: error: request for member ‘end’ in ‘A.std::vector<int>::operator[](((void)0, ((std::vector<int>::size