记录详情

Compile Error

./Main.java:1: error: class, interface, or enum expected
public static void main(String args[]){
              ^
./Main.java:3: error: class, interface, or enum expected
Scanner sc=new Scanner(System.in);
^
./Main.java:4: error: class, interface, or enum expected
s=sc.next();
^
./Main.java:5: error: class, interface, or enum expected
String s2="";
^
./Main.java:6: error: class, interface, or enum expected
int count=0;
^
./Main.java:7: error: class, interface, or enum expected
for(int i=0;i<s.length();i++)
^
./Main.java:7: error: class, interface, or enum expected
for(int i=0;i<s.length();i++)
            ^
./Main.java:7: error: class, interface, or enum expected
for(int i=0;i<s.length();i++)
                         ^
./Main.java:10: error: class, interface, or enum expected
for(int j=i;j<s.length();j++)
^
./Main.java:10: error: class, interface, or enum expected
for(int j=i;j<s.length();j++)
            ^
./Main.java:10: error: class, interface, or enum expected
for(int j=i;j<s.length();j++)
                         ^
./Main.java:12: error: class, interface, or enum expected
}
^
./Main.java:13: error: class, interface, or enum expected
for(int k=0;k<s2.length();k++)
            ^
./Main.java:13: error: class, interface, or enum expected
for(int k=0;k<s2.length();k++)
                          ^
./Main.java:17: error: class, interface, or enum expected
}
^
15 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
比赛
南京师范大学2021年11月程序设计竞赛
语言
Java
递交时间
2021-11-21 14:26:49
评测时间
2021-11-21 14:26:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes