Wrote /root/JavaX-Caches/tmp_1654335656/main.java - 5268 bytes (written=5268, should be 5268) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_929549139 /root/JavaX-Caches/tmp_1654335656/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_1654335656/main.java:5: error: class, interface, or enum expected sclass GraphPanel extends JPanel { ^ /root/JavaX-Caches/tmp_1654335656/main.java:7: error: class, interface, or enum expected int heigth = 400; ^ /root/JavaX-Caches/tmp_1654335656/main.java:8: error: class, interface, or enum expected int padding = 25; ^ /root/JavaX-Caches/tmp_1654335656/main.java:9: error: class, interface, or enum expected int labelPadding = 25; ^ /root/JavaX-Caches/tmp_1654335656/main.java:10: error: class, interface, or enum expected Color lineColor = new Color(44, 102, 230, 180); ^ /root/JavaX-Caches/tmp_1654335656/main.java:11: error: class, interface, or enum expected Color pointColor = new Color(100, 100, 100, 180); ^ /root/JavaX-Caches/tmp_1654335656/main.java:12: error: class, interface, or enum expected Color gridColor = new Color(200, 200, 200, 200); ^ /root/JavaX-Caches/tmp_1654335656/main.java:13: error: class, interface, or enum expected static final Stroke GRAPH_STROKE = new BasicStroke(2f); ^ /root/JavaX-Caches/tmp_1654335656/main.java:14: error: class, interface, or enum expected int pointWidth = 4; ^ /root/JavaX-Caches/tmp_1654335656/main.java:15: error: class, interface, or enum expected int numberYDivisions = 10; ^ /root/JavaX-Caches/tmp_1654335656/main.java:16: error: class, interface, or enum expected List<Double> scores; ^ /root/JavaX-Caches/tmp_1654335656/main.java:18: error: class, interface, or enum expected public GraphPanel(List<Double> scores) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:23: error: class, interface, or enum expected protected void paintComponent(Graphics g) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:25: error: class, interface, or enum expected Graphics2D g2 = (Graphics2D) g; ^ /root/JavaX-Caches/tmp_1654335656/main.java:26: error: class, interface, or enum expected g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); ^ /root/JavaX-Caches/tmp_1654335656/main.java:28: error: class, interface, or enum expected double xScale = ((double) getWidth() - (2 * padding) - labelPadding) / (scores.size() - 1); ^ /root/JavaX-Caches/tmp_1654335656/main.java:29: error: class, interface, or enum expected double yScale = ((double) getHeight() - 2 * padding - labelPadding) / (getMaxScore() - getMinScore()); ^ /root/JavaX-Caches/tmp_1654335656/main.java:31: error: class, interface, or enum expected List<Point> graphPoints = new ArrayList<>(); ^ /root/JavaX-Caches/tmp_1654335656/main.java:32: error: class, interface, or enum expected for (int i = 0; i < scores.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:32: error: class, interface, or enum expected for (int i = 0; i < scores.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:32: error: class, interface, or enum expected for (int i = 0; i < scores.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:34: error: class, interface, or enum expected int y1 = (int) ((getMaxScore() - scores.get(i)) * yScale + padding); ^ /root/JavaX-Caches/tmp_1654335656/main.java:35: error: class, interface, or enum expected graphPoints.add(new Point(x1, y1)); ^ /root/JavaX-Caches/tmp_1654335656/main.java:36: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:40: error: class, interface, or enum expected g2.fillRect(padding + labelPadding, padding, getWidth() - (2 * padding) - labelPadding, getHeight() - 2 * padding - labelPadding); ^ /root/JavaX-Caches/tmp_1654335656/main.java:41: error: class, interface, or enum expected g2.setColor(Color.BLACK); ^ /root/JavaX-Caches/tmp_1654335656/main.java:44: error: class, interface, or enum expected for (int i = 0; i < numberYDivisions + 1; i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:44: error: class, interface, or enum expected for (int i = 0; i < numberYDivisions + 1; i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:44: error: class, interface, or enum expected for (int i = 0; i < numberYDivisions + 1; i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:46: error: class, interface, or enum expected int x1 = pointWidth + padding + labelPadding; ^ /root/JavaX-Caches/tmp_1654335656/main.java:47: error: class, interface, or enum expected int y0 = getHeight() - ((i * (getHeight() - padding * 2 - labelPadding)) / numberYDivisions + padding + labelPadding); ^ /root/JavaX-Caches/tmp_1654335656/main.java:48: error: class, interface, or enum expected int y1 = y0; ^ /root/JavaX-Caches/tmp_1654335656/main.java:49: error: class, interface, or enum expected if (scores.size() > 0) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:51: error: class, interface, or enum expected g2.drawLine(padding + labelPadding + 1 + pointWidth, y0, getWidth() - padding, y1); ^ /root/JavaX-Caches/tmp_1654335656/main.java:52: error: class, interface, or enum expected g2.setColor(Color.BLACK); ^ /root/JavaX-Caches/tmp_1654335656/main.java:53: error: class, interface, or enum expected String yLabel = ((int) ((getMinScore() + (getMaxScore() - getMinScore()) * ((i * 1.0) / numberYDivisions)) * 100)) / 100.0 + ""; ^ /root/JavaX-Caches/tmp_1654335656/main.java:54: error: class, interface, or enum expected FontMetrics metrics = g2.getFontMetrics(); ^ /root/JavaX-Caches/tmp_1654335656/main.java:55: error: class, interface, or enum expected int labelWidth = metrics.stringWidth(yLabel); ^ /root/JavaX-Caches/tmp_1654335656/main.java:56: error: class, interface, or enum expected g2.drawString(yLabel, x0 - labelWidth - 5, y0 + (metrics.getHeight() / 2) - 3); ^ /root/JavaX-Caches/tmp_1654335656/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:62: error: class, interface, or enum expected for (int i = 0; i < scores.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:62: error: class, interface, or enum expected for (int i = 0; i < scores.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:65: error: class, interface, or enum expected int x1 = x0; ^ /root/JavaX-Caches/tmp_1654335656/main.java:66: error: class, interface, or enum expected int y0 = getHeight() - padding - labelPadding; ^ /root/JavaX-Caches/tmp_1654335656/main.java:67: error: class, interface, or enum expected int y1 = y0 - pointWidth; ^ /root/JavaX-Caches/tmp_1654335656/main.java:68: error: class, interface, or enum expected if ((i % ((int) ((scores.size() / 20.0)) + 1)) == 0) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:70: error: class, interface, or enum expected g2.drawLine(x0, getHeight() - padding - labelPadding - 1 - pointWidth, x1, padding); ^ /root/JavaX-Caches/tmp_1654335656/main.java:71: error: class, interface, or enum expected g2.setColor(Color.BLACK); ^ /root/JavaX-Caches/tmp_1654335656/main.java:72: error: class, interface, or enum expected String xLabel = i + ""; ^ /root/JavaX-Caches/tmp_1654335656/main.java:73: error: class, interface, or enum expected FontMetrics metrics = g2.getFontMetrics(); ^ /root/JavaX-Caches/tmp_1654335656/main.java:74: error: class, interface, or enum expected int labelWidth = metrics.stringWidth(xLabel); ^ /root/JavaX-Caches/tmp_1654335656/main.java:75: error: class, interface, or enum expected g2.drawString(xLabel, x0 - labelWidth / 2, y0 + metrics.getHeight() + 3); ^ /root/JavaX-Caches/tmp_1654335656/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:83: error: class, interface, or enum expected g2.drawLine(padding + labelPadding, getHeight() - padding - labelPadding, getWidth() - padding, getHeight() - padding - labelPadding); ^ /root/JavaX-Caches/tmp_1654335656/main.java:85: error: class, interface, or enum expected Stroke oldStroke = g2.getStroke(); ^ /root/JavaX-Caches/tmp_1654335656/main.java:86: error: class, interface, or enum expected g2.setColor(lineColor); ^ /root/JavaX-Caches/tmp_1654335656/main.java:87: error: class, interface, or enum expected g2.setStroke(GRAPH_STROKE); ^ /root/JavaX-Caches/tmp_1654335656/main.java:88: error: class, interface, or enum expected for (int i = 0; i < graphPoints.size() - 1; i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:88: error: class, interface, or enum expected for (int i = 0; i < graphPoints.size() - 1; i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:88: error: class, interface, or enum expected for (int i = 0; i < graphPoints.size() - 1; i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:90: error: class, interface, or enum expected int y1 = graphPoints.get(i).y; ^ /root/JavaX-Caches/tmp_1654335656/main.java:91: error: class, interface, or enum expected int x2 = graphPoints.get(i + 1).x; ^ /root/JavaX-Caches/tmp_1654335656/main.java:92: error: class, interface, or enum expected int y2 = graphPoints.get(i + 1).y; ^ /root/JavaX-Caches/tmp_1654335656/main.java:93: error: class, interface, or enum expected g2.drawLine(x1, y1, x2, y2); ^ /root/JavaX-Caches/tmp_1654335656/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:97: error: class, interface, or enum expected g2.setColor(pointColor); ^ /root/JavaX-Caches/tmp_1654335656/main.java:98: error: class, interface, or enum expected for (int i = 0; i < graphPoints.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:98: error: class, interface, or enum expected for (int i = 0; i < graphPoints.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:98: error: class, interface, or enum expected for (int i = 0; i < graphPoints.size(); i++) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:100: error: class, interface, or enum expected int y = graphPoints.get(i).y - pointWidth / 2; ^ /root/JavaX-Caches/tmp_1654335656/main.java:101: error: class, interface, or enum expected int ovalW = pointWidth; ^ /root/JavaX-Caches/tmp_1654335656/main.java:102: error: class, interface, or enum expected int ovalH = pointWidth; ^ /root/JavaX-Caches/tmp_1654335656/main.java:103: error: class, interface, or enum expected g2.fillOval(x, y, ovalW, ovalH); ^ /root/JavaX-Caches/tmp_1654335656/main.java:104: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:114: error: class, interface, or enum expected for (Double score : scores) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:116: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:118: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:122: error: class, interface, or enum expected for (Double score : scores) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:128: error: class, interface, or enum expected public void setScores(List<Double> scores) { ^ /root/JavaX-Caches/tmp_1654335656/main.java:130: error: class, interface, or enum expected invalidate(); ^ /root/JavaX-Caches/tmp_1654335656/main.java:131: error: class, interface, or enum expected repaint(); ^ /root/JavaX-Caches/tmp_1654335656/main.java:132: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1654335656/main.java:134: error: class, interface, or enum expected public List<Double> getScores() { return scores; } ^ /root/JavaX-Caches/tmp_1654335656/main.java:134: error: class, interface, or enum expected public List<Double> getScores() { return scores; } ^ 89 errors