You are viewing a single comment's thread. Return to all comments →
c++
int contMin=0; int contMax=0; int mayor=scores[0], menor=scores[0]; vector<int> nuevoV; for(int i=0;i<scores.size();i++){ if(scores[i]>mayor){ mayor=scores[i]; contMax++; } if(scores[i]<menor){ menor=scores[i]; contMin++; } } nuevoV.push_back(contMax); nuevoV.push_back(contMin); return nuevoV;
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
c++