Ok, I got the program to work, but I didn't realise that I actually got it right already, except that I didn't gcc again. SMH so much right now.