0_0_28739544_9488.cpp: In function 'int main()':
0_0_28739544_9488.cpp:10:15: error: 'scanf' was not declared in this scope
scanf("%d",&t);
^
0_0_28739544_9488.cpp:25:36: error: 'min' was not declared in this scope
dp[j]=min(dp[j],dp[j-w[i]]+p[i]);
^
0_0_28739544_9488.cpp:28:34: error: 'printf' was not declared in this scope
printf("This is impossible.\n");
^
0_0_28739544_9488.cpp:30:74: error: 'printf' was not declared in this scope
printf("The minimum amount of money in the piggy-bank is %d.\n",dp[ww]);
^
|