fork download
  1. for (int i = 0; i < x + 10; i++)
  2. {
  3. for (int j = 0; j < x + 10; j++)
  4. {
  5.  
  6. if ((list[i][j].Text != String.Empty && list[i + 1][j].Text != String.Empty && list[i + 2][j].Text != String.Empty && list[i + 3][j].Text != String.Empty && list[i + 4][j].Text != String.Empty)
  7. || (list[i][j].Text != String.Empty && list[i][j + 1].Text != String.Empty && list[i][j + 2].Text != String.Empty && list[i][j + 3].Text != String.Empty && list[i][j + 4].Text != String.Empty)
  8. || (list[i][j].Text != String.Empty && list[i + 1][j + 1].Text != String.Empty && list[i + 2][j + 2].Text != String.Empty && list[i + 3][j + 3].Text != String.Empty && list[i + 4][j + 4].Text != String.Empty)
  9. || (list[i][j].Text != String.Empty && list[i + 1][j - 1].Text != String.Empty && list[i + 2][j - 2].Text != String.Empty && list[i + 3][j - 3].Text != String.Empty && list[i + 4][j - 4].Text != String.Empty))
  10. {
  11. timer1.Enabled = false;
  12. Win winner = new Win();
  13. winner.StartPosition = FormStartPosition.CenterScreen;
  14. winner.Show();
  15. rex = true;
  16. if (list[i][j].Text == "x")
  17. {
  18. winner.TxtBoxWin = "X WON!";
  19. scoreX++;
  20. scoreXtext = Convert.ToString(scoreX);
  21. toolStripMenuItem4.Text = scoreXtext;
  22. }
  23. else if (list[i][j].Text == "o")
  24. {
  25. winner.TxtBoxWin = "O WON!";
  26. scoreO++;
  27. scoreOtext = Convert.ToString(scoreO);
  28. toolStripMenuItem5.Text = scoreOtext;
  29. rex = true;
  30. break;
  31. }
  32. }
  33. }
  34. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,3): error CS1525: Unexpected symbol `for'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty