aplusb.cpp: In function 'std::vector<int> smallest_sums(int, std::vector<int>, std::vector<int>)':
aplusb.cpp:7:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | for(int i = 0; i < A.size(); i++) minna = min(minna,(long long)A[i]);
| ~~^~~~~~~~~~
aplusb.cpp:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i = 0; i < B.size(); i++) minnb = min(minnb,(long long)B[i]);
| ~~^~~~~~~~~~
aplusb.cpp:11:12: error: could not convert 'ans' from 'vector<long long int>' to 'vector<int>'
11 | return ans;
| ^~~
| |
| vector<long long int>