says i need ./main i don't know how to fix that
I think the error might be coming from the existing main file you have. Though, I have absolutely no experience with c++, so yeah.
tl;dr delete the file called main
I don't seem to be having the same error as you do, but have you tried changing your names from main.cpp or main to something else? Maybe it's somehow conflicting with main(). :)
keeps saying i need ./main
it won't run