0_0_29888492_6278.cpp: In function 'int main()':
0_0_29888492_6278.cpp:17:20: error: 'j' was not declared in this scope
f[i][j]=1;dp[j]=dp[j-c[i]]+a[i];
^
0_0_29888492_6278.cpp:17:30: error: 'i' was not declared in this scope
f[i][j]=1;dp[j]=dp[j-c[i]]+a[i];
^
|