0_0_31390720_3822.cpp: In function 'int main()':
0_0_31390720_3822.cpp:13:29: error: 'memset' was not declared in this scope
memset(a,0,sizeof(a));
^
0_0_31390720_3822.cpp:22:39: error: expected primary-expression before ']' token
a[k]=max(a[k],a[k-]+w);
^
|