记录详情

Compile Error

/in/Main.java:1: error: class, interface, or enum expected
public static main(String[] args) {
              ^
/in/Main.java:3: error: class, interface, or enum expected
  System.out.print("???a???: ");
  ^
/in/Main.java:4: error: class, interface, or enum expected
  int a = scanner.nextInt();
  ^
/in/Main.java:5: error: class, interface, or enum expected
  System.out.println();
  ^
/in/Main.java:6: error: class, interface, or enum expected
  System.out.print("???b???: ");
  ^
/in/Main.java:7: error: class, interface, or enum expected
  int b = scanner.nextInt();
  ^
/in/Main.java:9: error: class, interface, or enum expected
  System.out.println();
  ^
/in/Main.java:10: error: class, interface, or enum expected
  System.out.println("a?b???: " + (a + b));
  ^
/in/Main.java:11: error: class, interface, or enum expected
}
^
9 errors

信息

递交者
类型
递交
题目
A+B problem
题目数据
下载
语言
Java
递交时间
2017-10-12 22:40:09
评测时间
2017-10-12 22:40:09
评测机
分数
0
总耗时
1016ms
峰值内存
41.32 MiB