#include #include int main() { int *heap; int n; double sum=0; int i; scanf("%d",&n); heap=(int*)malloc(sizeof(double)*n); if(heap=NULL)exit(0); for(i=0;i<=n-1;i++){ scanf("%f",&heap[i]); sum+=heap[i]; } printf("%f",sum); free(heap); return 0; }