Record Detail

Compile Error

/in/com/ve572/l1/Cinema.java:3: error: package javafx.util does not exist
import javafx.util.Pair;
                  ^
/in/com/ve572/l1/Hall.java:3: error: package javafx.util does not exist
import javafx.util.Pair;
                  ^
/in/com/ve572/l1/Hall.java:14: error: cannot find symbol
  public List<Pair<Integer, Integer>> priorityQueue = new ArrayList<Pair<Integer, Integer>>();
              ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:15: error: cannot find symbol
  public Pair<Integer, Integer> centralPos;
         ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:25: error: cannot find symbol
  static class seatComparator implements Comparator<Pair<Integer, Integer>> {
                                                    ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:26: error: cannot find symbol
    Pair<Integer, Integer> centralPos;
    ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Hall.java:27: error: cannot find symbol
    public seatComparator(Pair<Integer, Integer> centralPos) {
                          ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Hall.java:31: error: cannot find symbol
    public int compare(Pair<Integer, Integer> s1, Pair<Integer, Integer> s2) {
                       ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Hall.java:31: error: cannot find symbol
    public int compare(Pair<Integer, Integer> s1, Pair<Integer, Integer> s2) {
                                                  ^
  symbol:   class Pair
  location: class seatComparator
/in/com/ve572/l1/Cinema.java:60: error: cannot find symbol
      for (Pair<Integer, Integer> seat:hall.priorityQueue) {
           ^
  symbol:   class Pair
  location: class Cinema
/in/com/ve572/l1/Cinema.java:72: error: cannot find symbol
              newC1priority = hall.priorityQueue.indexOf(new Pair<Integer, Integer>(seat.getKey(), newC1));
                                                             ^
  symbol:   class Pair
  location: class Cinema
/in/com/ve572/l1/Cinema.java:75: error: cannot find symbol
              newC2priority = hall.priorityQueue.indexOf(new Pair<Integer, Integer>(seat.getKey(), newC2));
                                                             ^
  symbol:   class Pair
  location: class Cinema
/in/com/ve572/l1/Hall.java:14: error: cannot find symbol
  public List<Pair<Integer, Integer>> priorityQueue = new ArrayList<Pair<Integer, Integer>>();
                                                                    ^
  symbol:   class Pair
  location: class Hall
/in/com/ve572/l1/Hall.java:44: error: cannot find symbol
      centralPos = new Pair<Integer, Integer>(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:48: error: cannot find symbol
          priorityQueue.add(new Pair<Integer, Integer>(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.
15 errors

Information

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