0_0_35238731_11639.cpp: In function 'double binaryKnapsack(int, int*, double*, int)':
0_0_35238731_11639.cpp:8:16: error: 'MaxC' was not declared in this scope
double Val[MaxC];
^
0_0_35238731_11639.cpp:9:12: error: 'Val' was not declared in this scope
memset(Val, 0, sizeof(Val));
^
0_0_35238731_11639.cpp: In function 'int main()':
0_0_35238731_11639.cpp:19:20: error: 'MaxN' was not declared in this scope
int i, n, C, w[MaxN];
^
0_0_35238731_11639.cpp:25:26: error: 'w' was not declared in this scope
scanf("%d", &w[i]);
^
0_0_35238731_11639.cpp:27:27: error: 'v' was not declared in this scope
scanf("%lf", &v[i]);
^
0_0_35238731_11639.cpp:28:33: error: 'w' was not declared in this scope
ans = binaryKnapsack(n, w, v, C);
^
0_0_35238731_11639.cpp:28:36: error: 'v' was not declared in this scope
ans = binaryKnapsack(n, w, v, C);
^
|