Well it would help if you actually mentioned which OS and compiler you have.
We can't possibly guess from just a couple of error messages.
> warning #2225-D: the format string ends before this argument
I'm guessing there is a mis-match between a printf/scanf format string and the parameters (or lack thereof).
You know, messages come with line numbers, maybe start with that line.
> procedure main: warning #11013-D: Exceeding memory limits;
You've got a 100's of lines of code in main, and now it's time for you to split the function / file into separate modules?
--