0

Can somebody explain it to me what’s wrong with the code?? TIC TAC TOE

This is not my entire program as I found it on the internet but I made some changes . I don’t know how to make it run smoothly without any errors. I tried to figure it out but I need help. https://code.sololearn.com/cFY4Pfka8LFe/?ref=app

13th Feb 2021, 5:17 PM
Hakk123
Hakk123 - avatar
2 Respostas
+ 1
if you are trying to run it here, it will not be playable. because it is interactive, sololearn doesn't support that. it compiles and sends results at once. I didn't go through the code to see if there were any errors. but if you are running it on your computer or any interactive terminal, then I will take a look at it :)
13th Feb 2021, 6:40 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
May you need to check conditions in check_for_win() properly again i think.. And at line no.79 in loop for(int i=0;i<9;i++){ Use any other variable instead of i. Its already defined and setting to low value which cause infinite loop...
13th Feb 2021, 6:52 PM
Jayakrishna 🇮🇳