./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
for(int i=0;i<s.length;i++){
^
./Main.java:8: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:8: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:10: error: class, interface, or enum expected
if(a.charAt(i) == 32 ){
^
./Main.java:12: error: class, interface, or enum expected
}else{
^
./Main.java:14: error: class, interface, or enum expected
}
^
./Main.java:16: error: class, interface, or enum expected
}
^
./Main.java:18: error: class, interface, or enum expected
for(int i=0;i<s1.length;i++){
^
./Main.java:18: error: class, interface, or enum expected
for(int i=0;i<s1.length;i++){
^
./Main.java:19: error: class, interface, or enum expected
for(int j=i;j<s1.length;j++){
^
./Main.java:19: error: class, interface, or enum expected
for(int j=i;j<s1.length;j++){
^
./Main.java:21: error: class, interface, or enum expected
if(s1[i]<=s1[j]){
^
./Main.java:23: error: class, interface, or enum expected
}else{
^
./Main.java:25: error: class, interface, or enum expected
s1[j]=s1[i];
^
./Main.java:26: error: class, interface, or enum expected
s1[i]=code;
^
./Main.java:27: error: class, interface, or enum expected
}
^
./Main.java:30: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:30: error: class, interface, or enum expected
for(int i=0;i<s.length;i++){
^
./Main.java:32: error: class, interface, or enum expected
}
^
26 errors
[Hydro](https://hydro.ac)提供评测服务