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

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:19:24: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} to non-scalar type ‘std::vector<int>’ requested
19 | vector<int> An = A[0,a];
| ^
competition.cpp:20:24: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} to non-scalar type ‘std::vector<int>’ requested
20 | vector<int> Bn = B[0,b];
| ^
competition.cpp:21:12: error: ‘accumulate’ was not declared in this scope
21 | int tot = accumulate(An.begin(),An.end(),0) + accumulate(Bn.begin(),Bn.end(),0);
| ^~~~~~~~~~