/ Vijos /

记录详情

Compile Error

/in/Main.java:4: error: class main is public, should be declared in a file named main.java
public class main{
       ^
/in/Main.java:8: error: cannot find symbol
		String x= sc.nextString();
		            ^
  symbol:   method nextString()
  location: variable sc of type Scanner
/in/Main.java:9: error: cannot find symbol
		Char xc = x.charAt(0);
		^
  symbol:   class Char
  location: class main
/in/Main.java:11: error: bad operand types for binary operator '<'
		if(x<0||x>9){
		    ^
  first type:  String
  second type: int
/in/Main.java:11: error: bad operand types for binary operator '>'
		if(x<0||x>9){
		         ^
  first type:  String
  second type: int
5 errors

信息

递交者
类型
递交
题目
P1848 记数问题
语言
Java
递交时间
2024-07-10 15:40:39
评测时间
2024-07-10 15:40:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes