0_0_27493139_4147.cpp: In function 'int main()':
0_0_27493139_4147.cpp:3:5: error: 'count' was not declared in this scope
count=0;
^
0_0_27493139_4147.cpp:6:9: error: 'cnt' was not declared in this scope
cnt=0;
^
0_0_27493139_4147.cpp:9:25: error: 'num' was not declared in this scope
scanf("%d",&num[i]);
^
0_0_27493139_4147.cpp:9:31: error: 'scanf' was not declared in this scope
scanf("%d",&num[i]);
^
0_0_27493139_4147.cpp:16:9: error: 'sum' was not declared in this scope
sum = 0;
^
0_0_27493139_4147.cpp:19:20: error: 'num' was not declared in this scope
sum += num[i]*i;
^
0_0_27493139_4147.cpp:23:17: error: 'val' was not declared in this scope
val[++j] = i*k;
^
0_0_27493139_4147.cpp:27:17: error: 'val' was not declared in this scope
val[++j] = num[i]*i;
^
0_0_27493139_4147.cpp:29:41: error: 'printf' was not declared in this scope
printf("Collection #%d:",++count);
^
0_0_27493139_4147.cpp:36:20: error: 'dp' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_27493139_4147.cpp:36:35: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_27493139_4147.cpp:39:34: error: 'val' was not declared in this scope
for(int z=sum;z>=val[i];z--)
^
0_0_27493139_4147.cpp:40:58: error: 'max' was not declared in this scope
dp[z] = max(dp[z-val[i]]+val[i],dp[z]);
^
|