if someone tries to compile the tic tac toe.c++ in a c++ code compiler it will show
ERROR!
/tmp/jX8lL8oYYq.cpp:1:1: error: 'import' does not name a type
1 | import java.util.Scanner;
| ^~
/tmp/jX8lL8oYYq.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts'
/tmp/jX8lL8oYYq.cpp:3:1: error: expected unqualified-id before 'public'
3 | public class TicTacToe {
| ^~
Title is the issue.
if someone tries to compile the tic tac toe.c++ in a c++ code compiler it will show
ERROR! /tmp/jX8lL8oYYq.cpp:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^
~/tmp/jX8lL8oYYq.cpp:1:1: note: C++20 'import' only available with '-fmodules-ts' /tmp/jX8lL8oYYq.cpp:3:1: error: expected unqualified-id before 'public' 3 | public class TicTacToe { | ^~=== Code Exited With Errors ===