0_0_16919400_30223.cpp:8:23: error: expected unqualified-id before numeric constant
int cos[Ni],weg[Ni]; 9 int dp[Ni][Ni];
^
0_0_16919400_30223.cpp: In function 'void dfs(int)':
0_0_16919400_30223.cpp:16:27: error: 'dp' was not declared in this scope
for(i=temp;i<=m;i++) dp[p][i]=weg[p];
^
0_0_16919400_30223.cpp:26:18: error: 'dp' was not declared in this scope
dp[p][j]=max(dp[p][j],dp[p][j-k]+dp[t][k]);
^
0_0_16919400_30223.cpp: In function 'int main()':
0_0_16919400_30223.cpp:36:17: error: 'dp' was not declared in this scope
memset(dp,0,sizeof(dp));
^
|