#include <stdio.h> #include <stdlib.h> int cal(int *array,int n); int main() { int n; int i; scanf("%d", &n); int *array = (int*)malloc(n * sizeof(int)); for (i = 0; i < n; i++) scanf("%d", &array[i]); printf("%d", cal(array, n)); free(array...