Main.cc:1:1: error: ‘import’ does not name a type
1 | import java.util.Scanner;
| ^~~~~~
Main.cc:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’
Main.cc:5:1: error: expected unqualified-id before ‘public’
5 | public class Main {
| ^~~~~~