0_0_25253268_30134.cpp: In function 'void dfs(int, int)':
0_0_25253268_30134.cpp:33:4: error: 'dp' was not declared in this scope
dp[y][j]=dp[x][j];
^
0_0_25253268_30134.cpp:34:8: error: too few arguments to function 'void dfs(int, int)'
dfs(y);
^
0_0_25253268_30134.cpp:24:6: note: declared here
void dfs(int x,int last){
^
0_0_25253268_30134.cpp:36:4: error: 'dp' was not declared in this scope
dp[x][j]=max(dp[x][j],dp[y][j-c[y]]+v[y]);
^
|