I'm currently making a quick little text-based sports simulator. I have 2 classes so far, Team and Player. I tried making an array of Players in a team, aka a roster. (Not sure how to do it otherwise). I tried making a player and then assigning him to the first place in the roster array. It compiles fine, but when I run the program, I get the 'segmentation fault' error, which has to do with an error in memory that I've cause, I believe. The code might not be the best, so sorry if my code isn't the most optimized. If you have any suggestions on how I can fix this, let me know. Thanks.I'm currently making a quick little text-based