#include using namespace std; typedef struct { int hw1; int hw2; } record; bool smaller(record& first, record& second){ return (first.hw1 < second.hw1); } int getMinPos1(record arr[], int len){ int minpos = 0; for(int i=1;i