bootfall.cpp: In function 'void rec(std::vector<int>&, int, std::vector<int>&)':
bootfall.cpp:12:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | if (i == a.size()) {
| ~~^~~~~~~~~~~
bootfall.cpp:13:25: error: 'accumulate' was not declared in this scope
13 | c.push_back(abs(accumulate(a.begin(), a.end(), 0) - 2 * accumulate(b.begin(), b.end(), 0)));
| ^~~~~~~~~~
bootfall.cpp: In function 'int main()':
bootfall.cpp:35:21: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>'
35 | rec({}, 0, c);
| ^
In file included from /usr/include/c++/10/vector:67,
from bootfall.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:487:7: note: after user-defined conversion: 'std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]'
487 | vector() = default;
| ^~~~~~
bootfall.cpp:11:23: note: initializing argument 1 of 'void rec(std::vector<int>&, int, std::vector<int>&)'
11 | void rec(vector<int>& b, int i, vector<int>& c) {
| ~~~~~~~~~~~~~^
bootfall.cpp:47:25: error: cannot bind non-const lvalue reference of type 'std::vector<int>&' to an rvalue of type 'std::vector<int>'
47 | rec({}, 0, c);
| ^
In file included from /usr/include/c++/10/vector:67,
from bootfall.cpp:2:
/usr/include/c++/10/bits/stl_vector.h:487:7: note: after user-defined conversion: 'std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator<int>]'
487 | vector() = default;
| ^~~~~~
bootfall.cpp:11:23: note: initializing argument 1 of 'void rec(std::vector<int>&, int, std::vector<int>&)'
11 | void rec(vector<int>& b, int i, vector<int>& c) {
| ~~~~~~~~~~~~~^