N- queen problem error

Can you pls tell why my code is showing error and how do I rectify it? https://ide.codingblocks.com/s/100162

HI @urvigoel26
You have declared ‘arr’ and ‘solarr’ as pointer to pointer to 2-D arrays which practically makes both of them 4-D arrays.
We only need 2-D arrays for this problem.
Declaring them like this is enough , no need for the pointers.

char arr[n][m];
int solarr[n][m];