I can't figure out what I'm doing wrong in this program. We are supposed to create a chart as provided

But, I can't seem to figure out what I'm doing wrong. We are using a file called teams.txt as provided:

This file displays the scores with each column being game 1, game 2, and game 3 scores.
Here is the code I have for this program (that definitely doesn't output the perfect chart!)




I would appreciate a run through where I went wrong with the code and ways that I can fix it.
The overview of the assignment:


Ric-MAC-9 Conference Tid?lvwinks TO?rnament
Rir-MAC-9 Conference Tid?lvwinks Tournament
187199151136177173181196199199162117161151185173184165192191173153191199106133108?162123126121181173188197200200171162179159184169189141194163174141196200104142106?1711751651491871731721991932001801561921631891681711571961641611371941991140118?
Notes: none
the array of integers that holds the game 3 scores, an integer that holds the nmber of teams that competed in the tournament turns: nothing tes: none *************************************************************/
For this assignment, write a program that will process information for the teams that competed in the 2023 Big Mac 9 Conference annual Tiddlywinks tournament. The tournament was open to the 9 schools in the Big Mac 9 Conference and possibly 3 at large schools. Each school that participated sent 3 teams to the tournament and each team played 3 games of Tiddlywinks. The information will be needed for later processing, so it will be stored in a set of arrays that will be displayed, sorted, and displayed (again). For the assignment, declare five arrays, each of which will hold a maximum of 36 elements: - one array of strings to hold the school names - one array of strings to hold the team names - one array of integers to hold the scores from game 1 - one array of integers to hold the scores from game 2 - one array of integers to hold the scores from game 3 The two arrays of strings should be declared (and initialized as follows):
The name of the string arrays and the name of the symbolic constant (to be discussed later) may be changed, but the initial values MUST remain the same. The five arrays will be parallel arrays. This means that the information for one team can be found in the same "spot" in each array. This also means that any time information is moved in one array the same move must be made to the other arrays in order to maintain data integrity. It is recommended that this program be written in two versions. The first version of the program will read a set of team information (game 1 score, game 2 score, and game 3 score) from standard input (the keyboard), as has been done since the start of the semester. The second version of the program will alter the first version so that the program reads from an input file rather than standard input. The second version is the ONLY one that will be handed in for grading.