0_0_36175109_30917.cpp: In function 'int biggerbackpack(int, int)':
0_0_36175109_30917.cpp:11:8: error: 'h' was not declared in this scope
for(j=h[i];j<=s;j++)
^
0_0_36175109_30917.cpp:12:5: error: 'dp' was not declared in this scope
if(dp[j]>dp[j-h[i]]+v[i])
^
0_0_36175109_30917.cpp:12:22: error: 'v' was not declared in this scope
if(dp[j]>dp[j-h[i]]+v[i])
^
0_0_36175109_30917.cpp:15:7: error: 'flag' was not declared in this scope
if(!flag && dp[s]<0x3f3f3f3f)
^
0_0_36175109_30917.cpp:18:9: error: 'dp' was not declared in this scope
return dp[s];
^
0_0_36175109_30917.cpp: In function 'int main()':
0_0_36175109_30917.cpp:29:3: error: 'flag' was not declared in this scope
flag=0;
^
0_0_36175109_30917.cpp:31:10: error: 'dp' was not declared in this scope
memset(dp,0x3f3f3f3f,sizeof(dp));
^
0_0_36175109_30917.cpp:34:17: error: 'v' was not declared in this scope
scanf("%d%d",&v[i],&h[i]);
^
0_0_36175109_30917.cpp:34:23: error: 'h' was not declared in this scope
scanf("%d%d",&v[i],&h[i]);
^
|