mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-21 21:11:57 +03:00
make identical datatype
4d0dbc401d/files/project_euler/problem_22/sol1.c (xa0d183509f9bbb35)
:1
This commit is contained in:
parent
0f48961469
commit
f21f18ef73
@ -128,7 +128,7 @@ int main(int argc, char **argv)
|
||||
for (i = 0; i < COUNT; i++)
|
||||
#endif
|
||||
{
|
||||
unsigned int score = 0;
|
||||
long score = 0;
|
||||
/* score the alphabets in i^th name */
|
||||
for (int j = 0; names[i][j] != '\0'; j++)
|
||||
score += names[i][j] - 'A' +
|
||||
|
Loading…
Reference in New Issue
Block a user