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

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:19:2: error: ‘An’ was not declared in this scope; did you mean ‘A’?
19 | An = A[0,a];
| ^~
| A
competition.cpp:20:2: error: ‘Bn’ was not declared in this scope; did you mean ‘B’?
20 | Bn = B[0,b];
| ^~
| 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);
| ^~~~~~~~~~
competition.cpp:22:13: error: expected ‘}’ at end of input
22 | cout << tot;
| ^
competition.cpp:6:11: note: to match this ‘{’
6 | int main(){
| ^