I was thinking that something was wrong with the code or I typed the command wrong. ("gcc score.c"). Plus the journal.txt file was modified to incude and exclude commas, will that affect the output of the file?
Attached is a modified version of the journal.txt
I run this project with your new files. Everything works ...