Created
November 16, 2020 00:04
-
-
Save thiagomg/7d78359f5e7a886cb59c5fa470ed15c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int totalize(const std::vector<int> &v, int pos) { | |
int total = 0; | |
for(int i=0; i < pos.size(); ++i) { | |
total += v[i]; | |
} | |
return total; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment