./Main.java:1: error: class, interface, or enum expected
Scanner sc = new Scanner(System.in);
^
./Main.java:2: error: class, interface, or enum expected
String a = sc.nextLine();
^
./Main.java:3: error: class, interface, or enum expected
int [] s = new int[a.length()];
^
./Main.java:4: error: class, interface, or enum expected
for(int i=0;i<a.length();i++){
^
./Main.java:4: error: class, interface, or enum expected
for(int i=0;i<a.length();i++){
^
./Main.java:4: error: class, interface, or enum expected
for(int i=0;i<a.length();i++){
^
./Main.java:6: error: class, interface, or enum expected
}
^
./Main.java:8: error: class, interface, or enum expected
String str1 = "";
^
./Main.java:9: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:9: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:9: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:12: error: class, interface, or enum expected
str1 = a.substring(0,i);
^
./Main.java:13: error: class, interface, or enum expected
}
^
./Main.java:16: error: class, interface, or enum expected
int num1 = Integer.valueOf(str1);
^
./Main.java:17: error: class, interface, or enum expected
int b = 0;
^
./Main.java:18: error: class, interface, or enum expected
if(num>num1){
^
./Main.java:20: error: class, interface, or enum expected
}else{
^
./Main.java:22: error: class, interface, or enum expected
}
^
./Main.java:23: error: class, interface, or enum expected
for(int i=0;i<=2;i++){
^
./Main.java:23: error: class, interface, or enum expected
for(int i=0;i<=2;i++){
^
./Main.java:24: error: class, interface, or enum expected
for(int z=0;z<=3;z++){
^
./Main.java:24: error: class, interface, or enum expected
for(int z=0;z<=3;z++){
^
./Main.java:25: error: class, interface, or enum expected
for(int k=0;k<=2;k++){
^
./Main.java:25: error: class, interface, or enum expected
for(int k=0;k<=2;k++){
^
./Main.java:26: error: class, interface, or enum expected
for(int q=0;q<=2;q++){
^
./Main.java:26: error: class, interface, or enum expected
for(int q=0;q<=2;q++){
^
./Main.java:27: error: class, interface, or enum expected
for(int m=0;m<=9;m++){
^
./Main.java:27: error: class, interface, or enum expected
for(int m=0;m<=9;m++){
^
./Main.java:30: error: class, interface, or enum expected
}
^
29 errors
[Hydro](https://hydro.ac)提供评测服务