Judging by this and your previous questions you need a whole lot of help understanding how to program. If you really want to learn, that is.
Do not assume that you can learn programming within a day, or even a week! Just to get the basics, you will need a couple of weeks, and only then will you be able to write a magic squares program (and many others) - but not very well: you will likely still need some help here and there.
It won't make sense for us to provide advice for every single issue you are encountering in your program: if we did that, and you follow all of our individual advices, it will still take weeks to finish your program. There are still a lot of issues in your program that you didn't even recognize yet. You would do better to spend that time working through a basic tutorial or two, e. g.:
http://www.cplusplus.com/doc/tutorial/[
^]
http://www.cprogramming.com/tutorial/c++-tutorial.html[
^]