/ Vijos /

记录详情

Compile Error

./Main.java:8: error: incompatible types: char cannot be converted to String
		String[] num=s.split(',');
		                     ^
./Main.java:10: error: cannot find symbol
		int len=num.size();
		           ^
  symbol:   method size()
  location: variable num of type String[]
./Main.java:44: error: bad operand types for binary operator '-'
		System.out.println(maxnum+","+tanxin.size()-1);
		                                           ^
  first type:  String
  second type: int
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1303 导弹拦截
语言
Java
递交时间
2023-08-07 10:01:26
评测时间
2023-08-07 10:01:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes