#include<iostream> #include<vector> using namespace std; int main() { int k,val,sum,ans,ans_s,ans_e,temps,tempe; vector<int>vec; while(cin >> k && k){ vec.clear(); while(k--){ cin >> val; vec.push_back(val); } ans = -10000000; ...