make identical datatype

4d0dbc401d/files/project_euler/problem_22/sol1.c?sort=name&dir=ASC&mode=heatmap#xa0d183509f9bbb35:1
This commit is contained in:
Krishna Vedala 2020-07-01 20:21:56 -04:00
parent 0f48961469
commit f21f18ef73
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ int main(int argc, char **argv)
for (i = 0; i < COUNT; i++) for (i = 0; i < COUNT; i++)
#endif #endif
{ {
unsigned int score = 0; long score = 0;
/* score the alphabets in i^th name */ /* score the alphabets in i^th name */
for (int j = 0; names[i][j] != '\0'; j++) for (int j = 0; names[i][j] != '\0'; j++)
score += names[i][j] - 'A' + score += names[i][j] - 'A' +