HELP ME PLEASE MAGIC SQUARE

need to create a magic square code that takes in any odd order input from the user and creates a magic square of that dimension.
getting error that says no matching function for call to magic and I'm sure there are other bugs I haven't gotten to yet that I can't see yet.