-
-
Save fabiogaluppo/8e8c4c0cbd3640c5eaa4 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 initial = 0; | |
int total = std::accumulate(std::begin(xs), std::end(xs), initial); | |
std::cout << total << "\n"; //55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment