aplusb.cpp: In function 'int main()':
aplusb.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | int n; scanf("%d", &n);
| ~~~~~^~~~~~~~~~
aplusb.cpp:30:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | for(int i = 0, x; i<n; ++i) scanf("%d", &x), A[i] = x;
| ~~~~~^~~~~~~~~~
aplusb.cpp:31:35: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | for(int i = 0, x; i<n; ++i) scanf("%d", &x), B[i] = x;
| ~~~~~^~~~~~~~~~
aplusb.cpp: In function 'std::vector<int> smallest_sums(int, std::vector<int>, std::vector<int>)':
aplusb.cpp:20:37: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | for(int j = 0; A[i] + B[j] <= ans && j<n; ++j){
/usr/bin/ld: /tmp/ccfTdIRa.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc0zDRgb.o:aplusb.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status