0_0_36225822_4078.cpp: In function 'int ans()':
0_0_36225822_4078.cpp:11:27: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_36225822_4078.cpp:12:20: error: 'number' was not declared in this scope
for(int i=1;i<=number;i++)
^
0_0_36225822_4078.cpp:13:24: error: 'volume' was not declared in this scope
for(int j=1;i<=volume;j++)
^
0_0_36225822_4078.cpp:18:67: error: 'value' was not declared in this scope
dp[i][j]=min(dp[i-1][j],dp[i-1][j-bone[i].volume]+value);
^
0_0_36225822_4078.cpp:20:15: error: 'number' was not declared in this scope
return dp[number][volume];
^
0_0_36225822_4078.cpp:20:23: error: 'volume' was not declared in this scope
return dp[number][volume];
^
|