记录详情

Compile Error

/in/Main.java:10: error: cannot find symbol
		if (2 > baby) {
		        ^
  symbol:   variable baby
  location: class Main
/in/Main.java:11: error: incompatible types: possible lossy conversion from double to int
			int baby = 0.1 * adult;
			               ^
/in/Main.java:14: error: bad operand types for binary operator '>='
		if (12 > now >= 2) {
		             ^
  first type:  boolean
  second type: int
/in/Main.java:15: error: incompatible types: possible lossy conversion from double to int
			int child = 0.5 * adult;
			                ^
/in/Main.java:16: error: cannot find symbol
			System.out.println("???" + chidl + " ? ");
			                           ^
  symbol:   variable chidl
  location: class Main
5 errors

信息

递交者
类型
递交
题目
P1012 机票打折
语言
Java
递交时间
2024-03-02 09:20:08
评测时间
2024-03-02 09:20:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes