记录详情

Compile Error

/in/Main.java:4: error: class, interface, or enum expected
	 public static void main(String[]args) {
	               ^
/in/Main.java:6: error: class, interface, or enum expected
         System.out.println("????????"); 
         ^
/in/Main.java:7: error: class, interface, or enum expected
         int a = sc.nextInt(); 
         ^
/in/Main.java:8: error: class, interface, or enum expected
         System.out.println("?????????"); 
         ^
/in/Main.java:9: error: class, interface, or enum expected
         int b = sc.nextInt(); 
         ^
/in/Main.java:12: error: class, interface, or enum expected
			long a1=10,b1=10;
			^
/in/Main.java:13: error: class, interface, or enum expected
			long d1=10,e1=10;
			^
/in/Main.java:14: error: class, interface, or enum expected
			double x=(-1)*Math.pow(a1, b1);     //???a1?b1???
			^
/in/Main.java:16: error: class, interface, or enum expected
			double y=Math.pow(d1, e1);
			^
/in/Main.java:18: error: class, interface, or enum expected
			if((a>=x&&a<=y)&&(b>=x&&b<=y)) {     //a?b???
			^
/in/Main.java:20: error: class, interface, or enum expected
				z=(a+b); 
				^
/in/Main.java:21: error: class, interface, or enum expected
				System.out.println(z);
				^
/in/Main.java:24: error: class, interface, or enum expected
			}
			^
/in/Main.java:27: error: class, interface, or enum expected
			}
			^
14 errors

信息

递交者
类型
递交
题目
欢迎来到南师大计算机学院OnlineJudge!
语言
Java
递交时间
2018-12-29 22:44:57
评测时间
2018-12-29 22:44:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes