0_0_17607297_24146.cpp: In function 'int main()':
0_0_17607297_24146.cpp:46:17: error: 'j' was not declared in this scope
for(j=0;j<=v;j++)
^
0_0_17607297_24146.cpp:46:24: error: 'v' was not declared in this scope
for(j=0;j<=v;j++)
^
0_0_17607297_24146.cpp:48:26: error: invalid types 'int[int]' for array subscript
if(j>=b[i])
^
0_0_17607297_24146.cpp:49:55: error: invalid types 'int[int]' for array subscript
dp[i][j]=fmax(dp[i-1][j],dp[i-1][j-b[i]]+a[i]);
^
0_0_17607297_24146.cpp:49:61: error: invalid types 'int[int]' for array subscript
dp[i][j]=fmax(dp[i-1][j],dp[i-1][j-b[i]]+a[i]);
^
0_0_17607297_24146.cpp:49:62: error: 'fmax' was not declared in this scope
dp[i][j]=fmax(dp[i-1][j],dp[i-1][j-b[i]]+a[i]);
^
|