A step by step compiler says "Invalid write of size 4", while in general it\'s a segmentation fault. I don\'t understand how to solve this. I have been fidgeting with