#include <math.h> #include <stdio.h> int main() { int i=0,j=0,v=0,in=0; int n=0,m=0; struct data{ int index; int value; }temp; struct data D[501];//create 501 structs for data scanf("%d",&n);//get the number for datas for(i=0...