0_0_22709012_25683.cpp:4:7: error: 'maxn' does not name a type
const maxn = 2005;
^
0_0_22709012_25683.cpp:5:8: error: 'maxn' was not declared in this scope
int dp[maxn][maxn];
^
0_0_22709012_25683.cpp:5:14: error: 'maxn' was not declared in this scope
int dp[maxn][maxn];
^
0_0_22709012_25683.cpp:6:10: error: 'maxn' was not declared in this scope
int flag[maxn][maxn];
^
0_0_22709012_25683.cpp:6:16: error: 'maxn' was not declared in this scope
int flag[maxn][maxn];
^
0_0_22709012_25683.cpp: In function 'int main()':
0_0_22709012_25683.cpp:13:11: error: 'maxn' was not declared in this scope
int w[maxn];//µ¥·فا®
^
0_0_22709012_25683.cpp:23:16: error: 'dp' was not declared in this scope
memset(dp, 0, sizeof(dp));
^
0_0_22709012_25683.cpp:24:16: error: 'flag' was not declared in this scope
memset(flag, 0, sizeof(flag));
^
0_0_22709012_25683.cpp:28:29: error: 'w' was not declared in this scope
scanf("%d%d%d",&w[i],&a[i],&b[i]);
^
0_0_22709012_25683.cpp:28:35: error: 'a' was not declared in this scope
scanf("%d%d%d",&w[i],&a[i],&b[i]);
^
0_0_22709012_25683.cpp:28:41: error: 'b' was not declared in this scope
scanf("%d%d%d",&w[i],&a[i],&b[i]);
^
0_0_22709012_25683.cpp:35:25: error: 'w' was not declared in this scope
if(j >= w[i])
^
0_0_22709012_25683.cpp:39:50: error: 'a' was not declared in this scope
temp = dp[i][j - w[i]] + a[i] + b[i];
^
0_0_22709012_25683.cpp:39:57: error: 'b' was not declared in this scope
temp = dp[i][j - w[i]] + a[i] + b[i];
^
0_0_22709012_25683.cpp:43:50: error: 'a' was not declared in this scope
temp = dp[i][j - w[i]] + a[i];
^
0_0_22709012_25683.cpp:45:60: error: 'a' was not declared in this scope
temp = max(temp, dp[i - 1][j - w[i]] + a[i] + b[i]);
^
0_0_22709012_25683.cpp:45:67: error: 'b' was not declared in this scope
temp = max(temp, dp[i - 1][j - w[i]] + a[i] + b[i]);
^
|