0
NEED HELP!!!!!!!!!!!🙏
https://code.sololearn.com/cudv8Sgug879/?ref=app I am trying to make a sudoku solver the whole program is ready but I am getting this error which I am unable to solve.Please help me
4 Respostas
+ 3
The segmentation fault is due to not being able to enter all of the numbers in the input. There is a 100 char limit which your input exceeds.
+ 5
Declear each and every variable just after int main(){ ......
This is issue of scope of variable....
+ 2
int row, col; these variables in sudokusolve() are never set prior to isua() function and isvalid() function being called. They can actually be removed from the isua() function as neither are even needed to be passed to that function since it sets both to 0 and goes through all elements of the array to check.
There may still be other issues, but I haven't gone through all the code yet. Your display function however is fine as is no error there.
0
Check it now it is still not working. WHY?