0_0_28197165_27885.cpp: In function 'int main()':
0_0_28197165_27885.cpp:30:3: error: expected ';' before 'for'
for(int i=0;i<n;i++)
^
0_0_28197165_27885.cpp:30:15: error: 'i' was not declared in this scope
for(int i=0;i<n;i++)
^
0_0_28197165_27885.cpp:38:36: error: 'class Node' has no member named 'a'
dp[j]=max(dp[j],dp[j-1]+node[i].a-(k-1)*node[i].b);
^
|