include<stdio.h>#include <malloc.h>int main(){ int len, data, ret=-1,input; int *arr; scanf("%d %d", &len, &data); arr = (int*)malloc(len*sizeof(int)); for (int i=0; i<len; i++) { scanf("%d",&input); arr[i] = input; } ...