foo.c:1:1: error: unknown type name 'import'
1 | import java.util.Scanner;
| ^~~~~~
foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.util.Scanner;
| ^
foo.c:3:1: error: unknown type name 'import'
3 | import java.util.regex.Matcher;
| ^~~~~~
foo.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
3 | import java.util.regex.Matcher;
| ^
foo.c:4:1: error: unknown type name 'import'
4 | import java.util.regex.Pattern;
| ^~~~~~
foo.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
4 | import java.util.regex.Pattern;
| ^
foo.c:6:1: error: unknown type name 'public'
6 | public class happ {
| ^~~~~~
foo.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'happ'
6 | public class happ {
| ^~~~
[Hydro](https://hydro.ac)提供评测服务