Something is wrong in my code

Replace line 47 with magic(a,m,n,k,s);
The error will be removed.

If still there are some issues, you can refer this https://ide.codingblocks.com/s/263993