0_0_17607275_29795.cpp: In function 'int main()':
0_0_17607275_29795.cpp:46:17: error: 'j' was not declared in this scope
for(j=0;j<=v;j++)
^
0_0_17607275_29795.cpp:46:24: error: 'v' was not declared in this scope
for(j=0;j<=v;j++)
^
0_0_17607275_29795.cpp:48:26: error: invalid types 'int[int]' for array subscript
if(j>=b[i])
^
0_0_17607275_29795.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_17607275_29795.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_17607275_29795.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]);
^
0_0_17607275_29795.cpp:60:13: error: expected '}' at end of input
return 0;
^
|