#include #include using namespace std; int sumar(vector coleccion) { int suma = 0; for (int i = 0; i < coleccion.size(); i++) suma += coleccion[i]; return suma; } int main() { vector v = {12, 8, 5, 15, 3}; cout << sumar(v) << endl; }