aplusb.cpp: In function 'std::vector<long long int> smallest_sums(long long int, std::vector<long long int>, std::vector<long long int>)':
aplusb.cpp:11:15: error: 'i' was not declared in this scope
11 | loop1(i, n)
| ^
aplusb.cpp:11:9: error: 'loop1' was not declared in this scope
11 | loop1(i, n)
| ^~~~~
aplusb.cpp:20:9: error: 'vector' was not declared in this scope
20 | vector <ll> ans;
| ^~~~~~
aplusb.cpp:20:9: note: suggested alternatives:
In file included from /usr/include/c++/10/vector:67,
from aplusb.h:1,
from aplusb.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from aplusb.h:1,
from aplusb.cpp:1:
/usr/include/c++/10/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
aplusb.cpp:6:12: error: expected primary-expression before 'long'
6 | #define ll long long
| ^~~~
aplusb.cpp:20:17: note: in expansion of macro 'll'
20 | vector <ll> ans;
| ^~
aplusb.cpp:23:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
23 | ans.push_back(*it);
| ^~~
| abs
aplusb.cpp:26:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
26 | return ans;
| ^~~
| abs