0_0_24011852_32301.cpp:4:23: error: 'i' was not declared in this scope
int dp[maxn][maxn], v[i];
^
0_0_24011852_32301.cpp: In function 'int dfs(int, int)':
0_0_24011852_32301.cpp:11:11: error: 'v' was not declared in this scope
if( m > v[1]) s = v[1];
^
0_0_24011852_32301.cpp:14:15: error: 'v' was not declared in this scope
else if( m > v[k]) s = max(dfs(m-v[k], k-1) + v[i], dfs(m, k-1));
^
0_0_24011852_32301.cpp:14:50: error: 'i' was not declared in this scope
else if( m > v[k]) s = max(dfs(m-v[k], k-1) + v[i], dfs(m, k-1));
^
0_0_24011852_32301.cpp: In function 'int main()':
0_0_24011852_32301.cpp:23:27: error: 'memset' was not declared in this scope
memset(dp, 0, sizeof(dp));
^
0_0_24011852_32301.cpp:25:15: error: 'v' was not declared in this scope
scanf("%d",v[i]);
^
0_0_24011852_32301.cpp:30:9: error: 'v' was not declared in this scope
sort(v, v+n);
^
0_0_24011852_32301.cpp:30:15: error: 'sort' was not declared in this scope
sort(v, v+n);
^
|