foo.c:1:1: error: unknown type name 'import'
1 | import java.io.File;
| ^~~~~~
foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.io.File;
| ^
foo.c:2:1: error: unknown type name 'import'
2 | import java.io.FileReader;
| ^~~~~~
foo.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
2 | import java.io.FileReader;
| ^
foo.c:3:1: error: unknown type name 'import'
3 | import java.io.IOException;
| ^~~~~~
foo.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
3 | import java.io.IOException;
| ^
foo.c:4:1: error: unknown type name 'import'
4 | import java.util.ArrayList;
| ^~~~~~
foo.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
4 | import java.util.ArrayList;
| ^
foo.c:5:1: error: unknown type name 'import'
5 | import java.util.HashMap;
| ^~~~~~
foo.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
5 | import java.util.HashMap;
| ^
foo.c:6:1: error: unknown type name 'import'
6 | import java.util.Scanner;
| ^~~~~~
foo.c:6:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
6 | import java.util.Scanner;
| ^
foo.c:8:1: error: unknown type name 'public'
8 | public class Main {
| ^~~~~~
foo.c:8:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
8 | public class Main {
| ^~~~
[Hydro](https://hydro.ac)提供评测服务