answer.code: In function ‘int richest(int, int, int)’:
answer.code:6:9: error: ‘vector’ was not declared in this scope; did you mean ‘std::vector’?
6 | vector<int> A,B;
| ^~~~~~
| std::vector
In file included from /usr/include/c++/13/vector:66,
from richest.h:4,
from answer.code:1:
/usr/include/c++/13/bits/stl_vector.h:425:11: note: ‘std::vector’ declared here
425 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
answer.code:6:16: error: expected primary-expression before ‘int’
6 | vector<int> A,B;
| ^~~
answer.code:9:17: error: ‘A’ was not declared in this scope
9 | A.emplace_back(i),B.emplace_back(j);
| ^
answer.code:9:35: error: ‘B’ was not declared in this scope
9 | A.emplace_back(i),B.emplace_back(j);
| ^
answer.code:12:20: error: ‘A’ was not declared in this scope
12 | auto C=ask(A,B);
| ^
answer.code:12:22: error: ‘B’ was not declared in this scope
12 | auto C=ask(A,B);
| ^
answer.code:24:1: warning: control reaches end of non-void function [-Wreturn-type]
24 | }
| ^