0_0_21026473_32427.cpp:5:1: error: 'UL' does not name a type
UL MMax(UL x, UL y)
^
0_0_21026473_32427.cpp:10:1: error: 'UL' does not name a type
UL value[1005];
^
0_0_21026473_32427.cpp:12:1: error: 'UL' does not name a type
UL f[1005];
^
0_0_21026473_32427.cpp: In function 'int main()':
0_0_21026473_32427.cpp:20:3: error: 'UL' was not declared in this scope
UL k;
^
0_0_21026473_32427.cpp:22:36: error: 'value' was not declared in this scope
for (i=0; i<n; i++) scanf("%IU", value+i);
^
0_0_21026473_32427.cpp:24:17: error: 'k' was not declared in this scope
scanf("%IU", &k);
^
0_0_21026473_32427.cpp:25:9: error: 'f' was not declared in this scope
fill (f, f+n, 0);
^
0_0_21026473_32427.cpp:29:17: error: 'value' was not declared in this scope
for(j=k; j>=value[i]; j--)
^
0_0_21026473_32427.cpp:32:46: error: 'MMax' was not declared in this scope
f[j]=MMax(f[j], f[j-weight[i]]+ value[i]);
^
|