Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
#include
using namespace std; int main() { unordered_map
people = {{"John", 32}, {"Adele", 45}, {"Bo", 29}}; int total = 0; for (auto it = people.begin(); it != people.end(); ++it) { total += it->second; } cout << "Total age: " << total; return 0; }
Total age: 106