记录详情

Compile Error

/in/Main.java:13: error: incompatible types: int[] cannot be converted to int
			int dp = new int[n];
			         ^
/in/Main.java:16: error: array required, but int found
					if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
					                  ^
/in/Main.java:16: error: array required, but int found
					if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
					                                   ^
/in/Main.java:16: error: array required, but int found
					if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
					                                          ^
/in/Main.java:18: error: array required, but int found
				dp[i] ++;
				  ^
/in/Main.java:19: error: array required, but int found
				res = Math.max(res, dp[i]);
				                      ^
/in/Main.java:21: error: incompatible types: int[] cannot be converted to int
			dp = new int[n];
			     ^
/in/Main.java:24: error: array required, but int found
					if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
					                  ^
/in/Main.java:24: error: array required, but int found
					if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
					                                   ^
/in/Main.java:24: error: array required, but int found
					if(g[i] > g[j]) dp[i] = Math.max(dp[i], dp[j]);
					                                          ^
/in/Main.java:26: error: array required, but int found
				dp[i] ++;
				  ^
/in/Main.java:27: error: array required, but int found
				res = Math.max(res, dp[i]);
				                      ^
12 errors

信息

递交者
类型
递交
题目
P1009 怪盗基德的滑翔翼
语言
Java
递交时间
2024-03-26 11:05:20
评测时间
2024-03-26 11:05:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes