#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
usingnamespace std;
//Hashing
int main()
{
vector<string>v = { "leo"};
vector<int>total;
for (int i = 0; i < v.size(); i++)
{
string s = v[i];
int sum = 0;
//This loop calculates the sum of the ascii values of the given string
for (int j = 0; j < s.size(); j++)
{
char c = s[j];
sum = sum + (int)c;
}
total.push_back(sum);
}
for (int i = 0; i < total.size(); i++)
{
cout << "The sum is " << total[i] << endl;
}
return 0;
}