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

14th May 2020, 6:24 PM
Nazeefa Labiba
Nazeefa Labiba - avatar
4 Respuestas
+ 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.
14th May 2020, 7:04 PM
ChaoticDawg
ChaoticDawg - avatar
+ 5
Declear each and every variable just after int main(){ ...... This is issue of scope of variable....
14th May 2020, 7:02 PM
Raj Kalash Tiwari
Raj Kalash Tiwari - avatar
+ 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.
15th May 2020, 6:27 AM
ChaoticDawg
ChaoticDawg - avatar
0
Check it now it is still not working. WHY?
15th May 2020, 5:32 AM
Nazeefa Labiba
Nazeefa Labiba - avatar