Record Detail

Compile Error

/in/com/ve572/l1/Hall.java:12: error: cannot find symbol
  public List<Pair> priorityQueue = new ArrayList<Pair>();
              ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:13: error: cannot find symbol
  public Pair centralPos;
         ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:23: error: cannot find symbol
  static class seatComparator implements Comparator<Pair> {
                                                    ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:24: error: cannot find symbol
    Pair centralPos;
    ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Hall.java:25: error: cannot find symbol
    public seatComparator(Pair centralPos) {
                          ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Hall.java:29: error: cannot find symbol
    public int compare(Pair s1, Pair s2) {
                       ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Hall.java:29: error: cannot find symbol
    public int compare(Pair s1, Pair s2) {
                                ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Cinema.java:58: error: cannot find symbol
      for (Pair seat:hall.priorityQueue) {
           ^
  symbol:   class Pair
  location: class Cinema
/in/com/ve572/l1/Cinema.java:70: error: cannot find symbol
              newC1priority = hall.priorityQueue.indexOf(new Pair(seat.getKey(), newC1));
                                                             ^
  symbol:   class Pair
  location: class Cinema
/in/com/ve572/l1/Cinema.java:73: error: cannot find symbol
              newC2priority = hall.priorityQueue.indexOf(new Pair(seat.getKey(), newC2));
                                                             ^
  symbol:   class Pair
  location: class Cinema
/in/com/ve572/l1/Hall.java:12: error: cannot find symbol
  public List<Pair> priorityQueue = new ArrayList<Pair>();
                                                  ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:42: error: cannot find symbol
      centralPos = new Pair(seats.size(), seats.get(0).size()%2==0?seats.get(0).size() / 2+1:(seats.get(0).size()+1)/2);
                       ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:46: error: cannot find symbol
          priorityQueue.add(new Pair(i,j));
                                ^
  symbol:   class Pair
  location: class Hall
Note: /in/com/ve572/l1/Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
13 errors

Information

Submit By
Type
Submission
Homework
Lab 1
Language
Java
Submit At
2019-05-27 14:16:12
Judged At
2019-05-27 14:16:12
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes