记录详情

Compile Error

/in/Main.java:2: error: class Intersection is public, should be declared in a file named Intersection.java
public class Intersection {
       ^
/in/Main.java:3: error: cannot find symbol
    @Test
     ^
  symbol:   class Test
  location: class Intersection
/in/Main.java:5: error: cannot find symbol
        Set<String> set1 = new HashSet<>();
        ^
  symbol:   class Set
  location: class Intersection
/in/Main.java:5: error: cannot find symbol
        Set<String> set1 = new HashSet<>();
                               ^
  symbol:   class HashSet
  location: class Intersection
/in/Main.java:6: error: cannot find symbol
        Set<String> set2 = new HashSet<>();
        ^
  symbol:   class Set
  location: class Intersection
/in/Main.java:6: error: cannot find symbol
        Set<String> set2 = new HashSet<>();
                               ^
  symbol:   class HashSet
  location: class Intersection
6 errors

信息

递交者
类型
递交
题目
A10-4 集合的交集
比赛
中北数据结构课程赛事二:顺序表类的操作
语言
Java
递交时间
2019-03-10 21:08:05
评测时间
2019-03-10 21:08:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes