#include using namespace std; void minSum(vector a, int n){ sort(a.begin(), a.end() ); int val = INT_MAX; for(int i=1; i> n; vector a(n); for(int a_i = 0; a_i < n; a_i++){ cin >> a[a_i]; } // your code goes here minSum(a, n); return 0; }