#include <iostream> #include<vector> using namespace std; int main() { int n = 0; int maxsum = 0, maxs = 0; cin >> n; vector<int> nums(n); for (int i = 0; i < n; i++) { cin >> nums[i]; } maxsum=nums[0]; for (int i = 0; i ...