aplusb.cpp: In function 'int* smallest_sums(int, int*, int*)':
aplusb.cpp:13:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
13 | sort(all(x));
| ^~~
| std::filesystem::perms::all
In file included from /usr/include/c++/10/filesystem:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from aplusb.cpp:1:
/usr/include/c++/10/bits/fs_fwd.h:148:7: note: 'std::filesystem::perms::all' declared here
148 | all = 0777,
| ^~~
aplusb.cpp:17:12: warning: address of local variable 'ans' returned [-Wreturn-local-addr]
17 | return ans;
| ^~~
aplusb.cpp:14:9: note: declared here
14 | int ans[100005];
| ^~~