aplusb.cpp: In function 'int* smallest_sums(int, int*, int*)':
aplusb.cpp:3:5: error: 'ios' has not been declared
3 | ios::sync_with_stdio(0);
| ^~~
aplusb.cpp:17:5: error: 'multimap' was not declared in this scope
17 | multimap<int, int> sums;
| ^~~~~~~~
aplusb.cpp:17:14: error: expected primary-expression before 'int'
17 | multimap<int, int> sums;
| ^~~
aplusb.cpp:20:9: error: 'sums' was not declared in this scope
20 | sums.insert({numbers1[i] + numbers2[0], 1});
| ^~~~
aplusb.cpp:28:31: error: 'sums' was not declared in this scope
28 | auto first_element = *sums.begin();
| ^~~~
aplusb.cpp:44:12: warning: address of local variable 'final_numbers' returned [-Wreturn-local-addr]
44 | return final_numbers;
| ^~~~~~~~~~~~~
aplusb.cpp:23:9: note: declared here
23 | int final_numbers[n];
| ^~~~~~~~~~~~~