I'm not sure if the input will be exactly like the samples, or if the header table was just for us to help understand, so in case the input is not like the samples, line 15 can be commented out and the program should work as expected.
# In case of error
If that command to compile does not work, please place all C and C header files in the same directory and run: