• + 0 comments

    include

    include

    include

    include

    int main(){ int n, sum=0; scanf("%d",&n);

    int *arr = (int*)malloc(n * sizeof(int));
    
    for(int i; i < n; i++){
        scanf("%d", &arr[i]);
        sum+=arr[i];
    }
    printf("%d",sum);
    free(arr);
    

    }